The logs showed why: a missing field. You need a new column.
Adding a new column is not just a schema change. It can alter query plans, indexes, and application code. The wrong approach risks downtime or corrupted data. The right approach deploys cleanly, without stops or surprises.
In SQL, the basics are simple:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
That works on small tables. On large production datasets, it can lock writes or take minutes to complete. You must plan the new column with awareness of migrations, replication, and load.
Use online schema change tools when working with high-traffic systems. MySQL has pt-online-schema-change. PostgreSQL can add nullable columns without a table rewrite, but defaults that are not constant expressions will rewrite the table. Always test these operations against a staging copy with real data size.