-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate only one step down by default +
TargetVersion
set to -1 for…
… unlimited A few tweaks to the originally proposed migration API: * When migrating down, defaults to a maximum of one step by default. This is meant as a safety feature so that it's harder to remove the River schema completely by accident. * When migrating down, `TargetVersion` can be set to `-1` explicitly to move an unlimited number of steps. This adds a way to remove the River schema completely by migrating to the equivalent of version zero (we can't use `0` for this because that's the default value of `int`).
- Loading branch information
Showing
2 changed files
with
63 additions
and
35 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
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