A new column changes the shape of your data. It can be a schema migration for a production database. It can be a virtual field in an ORM model for faster iteration. It can be a calculated value in a query layer that avoids heavy client-side processing. Whatever the case, the goal is the same: control structure without breaking integrity.
In SQL, adding a new column means altering the table. Use ALTER TABLE with explicit type and constraints. Always define nullability. Apply indexes only when needed to avoid write latency. On critical systems, run migrations in off-peak hours or with zero-downtime strategies such as creating the column nullable, backfilling in batches, then enforcing constraints.
In application code, a new column may require updating models, serializers, DTOs, and API contracts. Keep these changes atomic in version control. Ship backward-compatible defaults before enforcing new rules. Align database and application changes through migration tooling.