Open
Description
We should think about handling more complex scenarios of database migrations with the following strong requirements:
- allow migration from any to any version
- ensure idempotency of database init scripts and migrations
This is a follow-up to #232. Which will require people to go through 0.7.x
migration when migrating from pre-0.7.x versions to future ones.
One solution to handle this would be to save the database version in the database itself (e.g. schema_migrations
table) and build this logic into our scripts. We could also have a logic that includes files per release.
Or we could rely on some existing tools for that, like Liquidbase, Flyway or migrate.