mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Support backward-incompatible version upgrades in vocabulary #595

Closed rnewman closed 6 years ago

rnewman commented 6 years ago

As currently implemented, vocabulary management doesn't allow for breaking upgrades:

https://github.com/mozilla/mentat/blob/master/src/vocabulary.rs#L478

This issue tracks doing what the comment already says: running 'pre' steps, altering the schema, and running 'post' steps.

It's important for merging that the pre/post steps are deterministic, and we should document that.

rnewman commented 6 years ago

Fixed in #627.