3 ms·
We do it the other way (and I’ve always seen it done this way): database change is compatible with current code and new code. So deploy the database change, the
by daigoba66 7y ago
We do it the other way (and I’ve always seen it done this way): database change is compatible with current code and new code. So deploy the database change, then deploy the code change. It usually allows you to rollback code changes.
- sciurus 7y agoThis is generally harder to pull off though unless you do things like force all DB access to go through stored procedures. And then you're really still pursuing the same strategy described above, except for your stored procedures instead of your app code.