The query finishes running, the log shows success, but the UI is broken. You need a new column.
A new column is one of the most common operations in databases. It changes your schema immediately, but it also changes the way future queries behave. Done right, it is fast and safe. Done wrong, it can lock tables, break queries, or corrupt data.
Adding a new column means altering the table definition. In SQL, this starts with ALTER TABLE. You define the column name, type, constraints, and defaults. Plan for null handling. Plan for indexing only when required. Every extra index on the new column costs in write performance.
When creating a new column in PostgreSQL, MySQL, or SQLite, remember that schema migrations should run in controlled environments. In production, test the migration on a staging copy. Measure how long it takes. For large datasets, adding a new column with default values can cause a full table rewrite. This is expensive. Avoid defaults unless needed, and backfill data with separate scripts after the column exists.