Schema changes define the speed and safety of your database. Adding a new column sounds simple, but it touches query planning, indexing, migrations, and API contracts. One missing step can break production.
A new column starts with a schema migration. In PostgreSQL, ALTER TABLE ... ADD COLUMN is fast for most cases, but default values and constraints can lock the table. In MySQL, adding a column to a large table without care can cause downtime. Always test migrations on staging with a dataset close to production size.
Decide on nullability before you run it. Nullable columns avoid blocking writes in some engines, but they can hide data gaps later. Non-null columns with defaults require careful handling to avoid full table rewrites.
If the column affects critical queries, update indexes right after you add it. Missing index coverage on a new column can crush performance. Composite indexes that include the new column can speed up read-heavy workloads, but watch for index bloat.