The migration finished at midnight, but the schema was wrong. The dashboard showed gaps where data should live. You need a new column, and you need it now.
A new column in a database is not just extra space. It changes queries, indexes, and storage. It shifts how your application reads and writes. Choosing the right type influences speed and cost. A sloppy addition can lock tables, stall services, or break downstream APIs.
First, define the purpose. If the column stores user flags, a Boolean might be enough. For monetary values, use a decimal with fixed precision. Strings need length limits to control storage bloat. Always set default values to avoid null traps.
Second, plan deployment. In production, altering a large table is risky. Use tools that run migrations online, avoiding downtime. Write migrations idempotently so they can rerun without damage. Batch updates to prevent load spikes.