Adding a new column is one of the most common operations in database work, yet it is also one of the most dangerous. Done wrong, it locks tables, stalls writes, and backs up queues. Done right, it ships in seconds with no downtime.
A new column can mean new features, new reporting, new integrations. The task looks small but touches schema design, application code, migrations, and production safety. Before altering, decide on type, nullability, defaults, and indexing. Make sure the new column fits the domain model.
In relational databases like PostgreSQL or MySQL, use additive migrations. Always write migrations to be backward-compatible. Deploy schema changes first, then deploy code that uses the column. For large tables, use tools like pt-online-schema-change, gh-ost, or native concurrent operations. Avoid default values that rewrite every row unless absolutely required.