-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --upgrade
command to Schema Loader
#1208
Conversation
--upgrade
command to Schema Loader
345cb55
to
e44abc9
Compare
8892882
to
7f5e898
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Left one super minor comment.
throws SchemaLoaderException { | ||
Either<Path, Properties> config = new Left<>(configPath); | ||
upgrade(config, options); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super minor, but we probably need an empty line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thank you.
It's a shame Spotless does not enforce having a blank line between method definitions.
be5165f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Description
This adds a new
--upgrade
command to the Schema Loader, which directly calls the Admin APIupgrade()
method.For more details about what
upgrade
does, please refer to #1204Related issues and/or PRs
upgrade()
to Admin API #1204Changes made
Adds a new
--upgrade
command to the Schema LoaderChecklist
Additional notes (optional)
Release notes
Added a new command
--upgrade
to the Schema Loader. Running this method when updating an existing environment to ScalarDB 4.X is necessary to support backward incompatible changes introduced by the new "namespaces management" feature. This command is strictly equivalent to the Admin APIupgrade()
method.