Adding a new column should be deliberate. It changes the model, the API surface, the storage footprint, and the migration path. In SQL, the syntax is simple:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
But the impact runs deeper than one line of code. Adding a column in a production database can block writes, lock tables, or cause downtime if not planned. On large datasets, this means scheduling the migration during low-traffic windows, using concurrent operations where supported, or deploying in multiple steps to avoid performance hits.
Version control for schema changes is not optional. Use migration tools that keep database state in sync across development, staging, and production. Commit the migration file, not just the updated model. Test against a realistic dataset. Measure query plans before and after the change to catch regressions early.
When working with ORM frameworks, remember that adding a column in the database is not enough. Update the model definitions. Verify serialization and deserialization code. If the new column has defaults or constraints, reflect them both at the database level and in application code.