The schema was breaking, so you added a new column. Simple in theory. Hard in practice.
A new column can cascade downstream impacts on your database, API, and client code. The change touches schema migrations, ORM models, serialization, validation, and even caching. Done right, it’s a clean extension of your data model. Done wrong, it’s brittle, slow, and hard to roll back.
Start with the database. Add the new column using an explicit migration file, not an ad-hoc query. Use the correct data type and nullability from the start. If the column needs default values, set them in the migration to avoid inconsistent state.
Update your code to handle the new column everywhere it matters. Adjust entity definitions in your ORM. Modify serializers and deserializers. Write unit tests that check both presence and absence of the column. Update API contracts so clients know exactly what to expect.