The database needed one thing: a new column.
Adding a new column changes the shape of your data. It is one of the most common schema updates in production. Done right, it unlocks new features and insights. Done wrong, it slows queries, breaks code paths, and risks downtime.
A new column in SQL or NoSQL is more than a field name and type. You must decide the data type, default values, nullability, and indexing. In PostgreSQL, for example, ALTER TABLE users ADD COLUMN last_login TIMESTAMP; is simple but may cause a table rewrite depending on constraints. In MySQL, storage engines and lock behavior determine if the operation blocks writes.
Order matters when performing migrations. Always test with realistic datasets. For large tables, add the column without defaults to avoid locking, then backfill in batches. Use feature flags to deploy schema changes safely alongside application code. Monitor query performance before and after.