Adding a column is not just an SQL exercise. It changes the shape of your dataset, the queries it supports, and the logic that runs against it. The smallest structural change can ripple through indexes, APIs, and workflows.
Start with clarity. Know exactly what the new column must store. Name it precisely. Choose the right type—integer, varchar, boolean, timestamp. Think about nulls and defaults before you write the first migration.
In PostgreSQL, a simple ALTER TABLE users ADD COLUMN last_login TIMESTAMP; works. In MySQL, the syntax is similar. In a production environment, even a single column addition can lock tables or affect performance. Test on staging. Time your migrations during low traffic.