Skip to content
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

Feature: restore including schema #4

Closed
maorfr opened this issue Dec 26, 2018 · 0 comments
Closed

Feature: restore including schema #4

maorfr opened this issue Dec 26, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@maorfr
Copy link
Contributor

maorfr commented Dec 26, 2018

Currently, cain is only able to restore if a schema exists, and is in the same as the specified tag.

We could add an option to restore the schema as well, to avoid having to create the schema before restoring.

Implementation:
add a --schema string flag to restore, which will be used to specify which schema you wish to restore.

Expected behavior:
if --schema is not specified and schema does not exist - keep current behavior (error)
if --schema is not specified and schema exists and - keep current behavior (try to restore)
if --schema is specified and schema does not exist - restore schema and try to restore
if --schema is specified and schema exists and they are equal - keep current behavior (try to restore)
if --schema is specified and schema exists and they are not equal - error

@maorfr maorfr added enhancement New feature or request help wanted Extra attention is needed labels Dec 26, 2018
@maorfr maorfr closed this as completed in cb98729 Dec 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant