Adding a new column in a database is more than a simple ALTER TABLE. It forces you to think about migration speed, locking behavior, indexing strategy, and backward compatibility. The operation can block writes, slow reads, or cause downtime if not planned. On large tables, the wrong approach can take hours.
Plan the change. Decide if the new column should allow NULL. Choose the right data type—smaller types mean faster migrations and lighter storage footprint. Know if the column needs a default value. Avoid heavy computations during the migration. Test these changes on realistic datasets before touching production.
Use rolling deployments to coordinate schema changes with application logic. If your app writes to the new column before it’s deployed everywhere, you risk inconsistent data. Version your migrations. Track them. Document them.