The migration ran clean until the schema diff flagged a missing field. You need a new column, and you need it without downtime.
Adding a new column sounds simple. In production, it is not. The wrong ALTER TABLE can lock writes, spike latency, or block deploys. The key is to choose the right approach for your database, your workload, and your release plan.
For PostgreSQL, an ALTER TABLE ... ADD COLUMN is usually instant if the column has no default value and is nullable. Adding a default or a NOT NULL constraint can trigger a table rewrite. To avoid that, add the column without constraints, backfill in small batches, then add the constraint.
For MySQL, adding a column may require an online schema change tool like pt-online-schema-change or gh-ost. These tools create a shadow table, add the column, migrate data, and swap tables without locking production writes.