The table is broken. You know it, and you want to fix it fast. The data is growing, the schema is stale, and the next deployment needs a new column.
Adding a new column should be simple, but poor planning turns it into chaos. Migrations stall. Code breaks. Queries fail. The wrong type choice locks you into bad patterns. Every second of downtime erodes trust.
A precise process avoids the trap. Start by defining the name and type. Make it clear and predictable. Keep the schema consistent. If the column stores timestamps, use a consistent timezone. If it stores IDs, align with existing key formats. Document the reason for the change in version control so future updates carry the context.
Choose a migration strategy that matches reality. Online migrations reduce downtime but demand careful indexing. Test them against real data volume. If you add a new column with a default value, understand how your database handles backfill—some will rewrite every row, others will store metadata until updated. Avoid long locks on production tables.