Quantcast

Added a db migrate module.

Author Peter Eliasson <warackta@gmail.com>
Author date 2015-02-08 18:32:14
Author local date 2015-02-08 19:32:14 +0100
Committer Peter Eliasson <warackta@gmail.com>
Committer date 2015-02-08 18:32:14
Committer local date 2015-02-08 19:32:14 +0100
Commit 5b73aaf2ca38eac96d921e32dbc670484a980b41
Tree e471738f46a2d516e99f597f9501b84e3f2cc680
Parent 3460dd57fb95022c92d8ce1bb66121028340155e
Added a db migrate module.

The migrate module is for migrating instead of resetting the db between changes.

This commit also changes the db version twice;

7->8: dbVersion is now kept as a per-realm value, as all other data is stored that way. If it would be kept global it would mean migration would only run on on realm, then increase the dbVersion globally, making other realm's data out of sync.

8->9: Added "links" back from a groupParse to the encounter it was for.