Adding a new column is more than typing an ALTER TABLE statement. It is a change in the data contract. Before you add it, decide if the column is nullable, set default values, and check for backfill requirements. Plan the migration for zero downtime. Large tables may need batched updates to avoid locks that freeze the app.
In SQL, the basic pattern is:
ALTER TABLE users
ADD COLUMN last_login TIMESTAMP WITH TIME ZONE DEFAULT NOW();
But in production, the real work is ensuring this new column works with existing code and queries. Update ORM models and schema definitions. Run tests against staging with production-like data sizes. Monitor query performance. Remember that indexes on a new column can improve lookups but slow down writes.