A new column alters the shape of a database. It changes queries, indexes, and even how the application logic flows. Done well, it expands capability without breaking production. Done poorly, it creates performance bottlenecks and unexpected downtime.
In relational databases like PostgreSQL or MySQL, adding a new column is a schema migration. The command is simple:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This single line can trigger a full table rewrite, depending on the engine and settings. On large datasets, that means locks and latency. For zero-downtime deployments, you need to plan. Use online schema change tools or incremental rollouts to avoid blocking writes.
When adding a new column, define defaults explicitly. Avoid NULL unless it is intentional. Consider how the application code will handle the new field. Will it be indexed? Will it require backfilling historical data? Test these changes in staging with production-like load before shipping.