The database needs a new column. You open your editor, hands ready. One wrong choice, and the change will ripple through code, migrations, and production in ways you did not plan.
Adding a new column is simple enough in syntax. In reality, it is a structural shift. You must choose data types with precision. Decide on nullability before writing a single ALTER statement. Plan default values—explicit or implicit—so old rows will not break queries.
Write the migration with an up and down path. Test it against a copy of production data. Know that adding a column to a billion rows without a strategy will block writes or cause downtime. Use online schema changes if your database supports them. For PostgreSQL, a nullable column with no default is near-instant. Adding a column with a default value will rewrite the table.