Re:Ask HN: How do you version your data?
by webmaven on Sunday February 19, 2017 @10:43PM
(#13684109)
So, your data versions form a DAG, sort of like Git commits?
Re:Ask HN: How do you version your data?
by peclink on Monday February 20, 2017 @02:41AM
(#13685254)
What a great idea, thanks for sharing!
BTW, why using shell scripts to write migrations is so unpopular? We have lots of language/framework specific solutions or some «language agnostic» tools using plain SQL, both ways are rather limiting.
Re:Ask HN: How do you version your data?
by ComputerGuru on Monday February 20, 2017 @02:53AM
(#13685314)
So if you release version 1.0 with hash x, then release version 1.1 with hash y, and then release version 1.0.1 with hash z, 1.0.1 == 1.1?
For branching schemas, yes it gets complicated. But at least you get a nice conflict while merging the branches (at the right place) These conflicts help guide a rewrite of the schema history into something consistent. That's part of it: when a merge happens, you basically have to create a new migration that does the merge too.
and if you never merge the forks, there is no problem. they likely won't share a production database anyway, right?
[0]: https://medium.com/@clord/for-migration-of-schemas-use-versi...