Adding a new column to a table is simple. Doing it in production without downtime is not. The method depends on the database engine, the indexing strategy, and the data volume. In PostgreSQL, ALTER TABLE ADD COLUMN is fast for metadata-only changes when no default value is set. With a default, it rewrites the entire table, which can lock rows and break latency budgets.
In MySQL, ALTER TABLE ... ADD COLUMN often rebuilds the table. In InnoDB, this can block writes. Consider online DDL operations or tools like pt-online-schema-change to avoid full locks. Always test schema migrations in an environment with production-like data before running them live.
Think about column order. Most systems do not rely on physical order, but some legacy code and bulk export tools still assume it. Adding a new column at the end is safest. Plan for nullability, defaults, and constraints. Null columns take minimal storage in most modern engines.