The query runs, but the data is wrong. You realize the fix is simple: add a new column. Not someday. Now.
A new column changes the shape of your table and the way your application works. In SQL, the syntax is direct:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This operation updates the table schema without touching existing rows. Null values fill the new column until you backfill. Choosing the correct data type at creation time avoids migrations later. Keep naming consistent with your style guide to prevent confusion in large codebases.
When working in PostgreSQL, MySQL, or SQLite, ADD COLUMN is transactional in some cases but not all. For large tables, adding a new column with a default value can lock writes. Check your database docs and test migrations in staging before production.