A schema change can be simple or dangerous. A single ALTER TABLE on the wrong production table can trigger a lock, slow queries, or block writes. The key is precision. Define the new column with the correct data type and constraints before you run the migration. Know if it should allow NULL, have a DEFAULT value, or need indexing.
In SQL, adding a column looks like this:
ALTER TABLE users
ADD COLUMN last_login TIMESTAMP DEFAULT CURRENT_TIMESTAMP;
But in production, timing matters. Adding a column to a large table may require zero-downtime techniques. Use online schema change tools like gh-ost or pt-online-schema-change for MySQL, or native concurrent operations in PostgreSQL. For high-traffic systems, test with a clone of live data before running in prod.