-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Improve snapshot extensibility for NoSQL databases #5619
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
Improve snapshot extensibility for NoSQL databases #5619
Conversation
liquibase-standard/src/main/java/liquibase/snapshot/jvm/ViewSnapshotGenerator.java
Show resolved
Hide resolved
liquibase-standard/src/main/java/liquibase/snapshot/jvm/ViewSnapshotGenerator.java
Outdated
Show resolved
Hide resolved
3731fe6
to
7ff5885
Compare
c86bbdc
to
cb89af7
Compare
liquibase-standard/src/main/java/liquibase/snapshot/SnapshotGeneratorChain.java
Fixed
Show fixed
Hide fixed
liquibase-integration-tests/src/test/java/liquibase/dbtest/AbstractIntegrationTest.java
Show resolved
Hide resolved
liquibase-standard/src/main/java/liquibase/snapshot/SnapshotControl.java
Outdated
Show resolved
Hide resolved
liquibase-standard/src/main/java/liquibase/snapshot/SnapshotGeneratorChain.java
Outdated
Show resolved
Hide resolved
liquibase-standard/src/test/groovy/liquibase/snapshot/jvm/ViewSnapshotGeneratorTest.groovy
Show resolved
Hide resolved
liquibase-standard/src/main/java/liquibase/database/core/HsqlDatabase.java
Outdated
Show resolved
Hide resolved
That way, snapshot generators are strongly advised to add to existing snapshot instances, instead of creating new ones. For built-in generators that do not comply to this, the only option is to replace them, as suggested by the error message.
The only difference with before is that Schema gets filtered out since MySQL does not support it.
This reverts commit 317c141.
d906185
to
26a27e4
Compare
Hello @fbiville and @filipelautert , As of this PR, I am no longer able to run When running
Any thoughts on what is going on here? |
@jasonlyle88 I initially thought I missed porting
This PR changed all |
Impact
Pro companion PR: https://github.com/liquibase/liquibase-pro/pull/1605
Pro-tests companion PR: https://github.com/liquibase/liquibase-pro-tests/pull/1322
Things to be aware of
Having a generic method as
allows extensions (specially NoSql ones) to implement validations as
without changing core to add a new "supportsTables" method.
Things to worry about
TODO