Re:Dolt is Git for Data
by qaq on Thursday June 23, 2022 @12:23PM
(#31851356)
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.
[ Parent
| on HN ]
Right, 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.
so I have
commit1 drop table blah
commit2 create table blah with diff schema
I revert commit1 what would be the state?
It 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/ for some discussion of this.