The database was ready, but the schema was not. You needed a new column, and every second without it was costing you.
A new column is simple in theory: an addition to a table that holds extra data. In practice, it can be a point of failure if not handled with precision. Whether you use PostgreSQL, MySQL, or another relational database, adding a column touches live production systems, migrations, and application code. Done wrong, it can lock tables, block writes, and crash processes.
To add a new column safely, define the schema change step by step. First, plan the column type based on storage size, indexing needs, and constraints. If the column must have a default value, decide whether to set it in the schema or in the application to avoid full table rewrites. Use ALTER TABLE with care—on large datasets, this command can trigger long, blocking operations. Online schema migration tools can reduce downtime.