The database waits. Your schema is solid, your data is live, but you need a new column.
Adding a new column sounds simple. In production, it can break deploys, lock tables, and slow queries. The right process keeps the system online and your team confident. The wrong one leads to downtime.
First, define the new column precisely. Choose a name that matches your naming conventions. Set the correct data type. Decide if it should allow NULL values. In most relational databases, adding a nullable column is fast; adding a non-null column with a default can rewrite the entire table.
For large datasets, use an online schema change tool. In MySQL, ALTER TABLE without care can block writes. PostgreSQL handles some cases instantly, but adding certain constraints will still require a full table rewrite. Plan schema migrations to run in small, reversible steps.