The migration ran clean until it didn’t. One table, thousands of rows, and no place to store the new value. You need a new column. Fast.
A new column in a relational database is more than schema decoration. It changes the shape of your data. It can alter query plans, indexes, and performance. Done right, it unlocks features without downtime. Done wrong, it locks your users out.
Start with an explicit migration. In SQL, that means ALTER TABLE with the exact type and constraints. Choose NULL or NOT NULL with care. A default value can make backfilling safer but will rewrite the table depending on the engine.
On PostgreSQL, adding a nullable column is almost instant. Adding one with a default is not—it rewrites every row. On MySQL, the storage engine can block writes during the change. Plan for this. Run the migration in off-peak hours, or use an online schema change tool.