4 ms·
So does this effectively mean - only create tables and add columns in your db schema migrations (no updating and removing)?
by anton-107 11y ago
So does this effectively mean - only create tables and add columns in your db schema migrations (no updating and removing)?
- lmm 11y agoYou can remove but you update the application to not read from the removed column (and test this in a test environment) first. "Updating" is best done by adding a new column, writing to the new column in parallel, back-populating it, reading from the new column, and then dropping the old column. It's a bit cumbersome but it works and it's safe.