2 ms·
If you release the new code only after the DB changes are complete, the new code doesn't need to be backwards compatible. The above guidelines are designed to
by sokoloff 16y ago
If you release the new code only after the DB changes are complete, the new code doesn't need to be backwards compatible.
The above guidelines are designed to provide no-change to the queries the old code is running, so that should be possible to accomplish for 95+% of your migrations.
For truly long-running migrations (longer than you're willing to wait to push code), you're correct that the new code must handle both cases. In our case, that's extremely rarely a factor, but we also don't push on every commit (nor even every day) like some shops do.