3 ms·
There are ways to version your database schema. Then you just need to make sure your code version is tied to your database version.
by irrational 4y ago
There are ways to version your database schema. Then you just need to make sure your code version is tied to your database version.
- throwawaylala1 4y agoYou can't restart all of your web services atomically. What happens if two web services are running two different versions for a couple seconds?
- oblio 4y agoIf you want to get super fancy, always compatible database migrations. Have both versions live, migrate to the new schema in 3 steps: 1. Old version 2. Old version/new version both live. 3. New version live after step 2 is confirmed as fully done.
- throwawaylala1 4y agoRight, I was just pointing out the flaw in the parent commenter's statement. You can't do "code version is tied to your database version" - that's just not a thing.
- deleted 4y ago[deleted]