4 ms·
You do realize that how MVCC works right? Turn off GC process that collects old versions on production DB and see what happens. Reverting changes out of order i
by qaq 4y ago
You do realize that how MVCC works right? Turn off GC process that collects old versions on production DB and see what happens. Reverting changes out of order is not possible in many cases.
- zachmu 4y agoRight, but it is with Dolt. That's the point. CALL DOLT_REVERT('bad-commit-hash') Works just like git revert: creates an inverse of the changes in the commit given and applies it as a patch.
- qaq 4y agoso I have commit1 drop table blah commit2 create table blah with diff schema I revert commit1 what would be the state?
- aboodman 4y agoIt will be a conflict. But you can commit the revert to a different branch and run both schemas at the same time. This provides a lot of flexibility! Check out https://www.dolthub.com/blog/2022-04-29-dolt-revert/ https://www.dolthub.com/blog/2022-04-29-dolt-revert/ for some discussion of this.