Adding a new column is one of the most common schema changes. It looks simple, but the details matter. Done wrong, it locks your table, bloats your storage, and breaks code you forgot existed. Done right, it’s instant, safe, and invisible to your users.
First, decide on the name and type. Use names that match your data model, not your mood. Pick the smallest type that fits the data. Adding a TEXT where a VARCHAR(30) works will cost you memory and speed. Use NULL only if it’s required.
Second, choose the right method for your database. In PostgreSQL, ALTER TABLE … ADD COLUMN runs fast unless you set a default that isn’t NULL. In MySQL, adding a column can lock the table unless you use ALGORITHM=INPLACE where available. Cloud-managed databases sometimes patch these issues, but never assume.