The database waits. You type the command. A new column appears.
Adding a new column to a database is one of the most common schema changes in software. It can be simple. It can also destroy uptime if done wrong. Speed and accuracy matter. The longer it locks, the more your users feel it.
To create a new column in SQL, the command is direct:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This works in PostgreSQL, MySQL, and other relational systems, but the impact is not always the same. On small tables, it is instant. On large tables, it can trigger a rewrite that freezes writes and slows reads. Always measure before you run it on production.
If you work with microservices, adding a new column often means touching multiple layers. Migrations, ORM updates, service contracts, API payloads, and front-end code need to reflect the change. The database schema is only step one. Rollouts must be coordinated.