The query runs fast, but the schema lags behind. You need a new column, and you need it without breaking production.
A new column can be more than extra storage. It can be a feature flag, a security safeguard, or the backbone of a reporting system. Yet adding it carelessly can lock tables, trigger downtime, or corrupt replication.
Plan the column definition first. Choose the right data type for the range and precision you need. Avoid nullable columns unless they serve a real purpose—nulls slow indexing and complicate queries. If you need default values, define them at creation to avoid mass updates later.
On large datasets, adding a column with an ALTER TABLE can block reads and writes. Online DDL tools like gh-ost or pt-online-schema-change allow you to add columns without halting traffic. Partitioned strategies and batched changes reduce risk further.