Bit-Nation / BITNATION-Pangea-libs

JS + Flow implementation of Panthalassa, the Pangea backend.
MIT License
8 stars 2 forks source link

[db] migration's for 0.3.2 #59

Open florianlenz opened 6 years ago

florianlenz commented 6 years ago

Problem / Task

Since we changed the database we need migration's to update it on the end user device. Realm has some helper's to migrate data (look here). It would be the best if you compare the current last release (0.3.1) to this release (branch: release/0.3.2).

Expected Output

marknuzz commented 6 years ago

This Realm issue is making it difficult to test. I cannot close the database and re-open it to test (with a different schema), without shutting down the entire process. And since test suites must run in isolation that makes things tricky. https://github.com/realm/realm-js/issues/1478

marknuzz commented 6 years ago

Changing to Version 2.2.0 of realm solved the above issue.