When you add a new column to a database table, you alter its design at the core. This is not just storage; it is a structural change that affects queries, indexes, constraints, and application logic. The act has consequences for performance, integrity, and deployment pipelines.
The simplest form is:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This modification is straightforward in development but can cause downtime in production if handled poorly. Large tables, heavy traffic, or missing defaults can cause locks. You need to plan the process, test the migration, and coordinate it with your automation.
A new column should be defined with the correct data type, nullability, and, if possible, sensible defaults. Avoid adding wide text fields when a smaller type suffices. Check whether the column belongs in the same table or if normalization would keep data cleaner.