-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tapdb: pass migration versions into MigrationTarget closure
This commit modifies the database migration procedure. Before performing any actual migration, we first compute the current database migration version and the maximum known migration version (the highest version we could migrate to). This information is logged. We then pass this information into the `MigrationTarget` closure, allowing it to decide whether and how to migrate. This enables us to conditionally create a database backup if a migration upgrade is possible.
- Loading branch information
Showing
1 changed file
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters