I use ObjectBox as a database manager on a Flutter/Dart Application.
I use a pre-filled database (.mdb) which I copy to the application directory at the installation.
- How to process to a migrate the database?
- What type of architecture should I set up to perform a migration of both the data present in the database but also the scheme (as we could do with Realm for example)
- Is it possible to get something like this:
if (oldVersion == 0) {
// Migrate DATA or/and Schema from v0 to v1
oldVersion++;
}
if (oldVersion == 1) {
// Migrate DATA or/and Schema from v1 to v2
oldVersion++;
}