The database table is finished, but the product manager wants one more field. You need a new column.
A new column changes more than the schema. It touches migrations, the ORM, queries, APIs, tests, and sometimes the front end. Done wrong, it breaks production. Done right, it becomes invisible, just part of the data model.
Adding a new column starts with defining its purpose and data type. In SQL, you use ALTER TABLE ... ADD COLUMN. Keep naming consistent. Align nullability and constraints with the business rules. If the column should never be null, set it as NOT NULL and give a sensible default value. Every detail matters now, so you don’t need a hotfix later.
Once the schema is updated, migration strategy is critical. In large systems, run non-blocking migrations. Add the column first, backfill data in batches, then deploy code that uses it. This prevents locking tables in production and avoids downtime.