forked from alexandru-slobodcicov/liquibase-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Rollback doesn't work with liquibase-mongodb-4.0.0.2 extension #38
Comments
I also tested with explicit rollbacks (see my test here: https://github.com/mmarcon/liquibase-mongo-docker/tree/master/example/changelog) and it didn't seem to do anything. |
PR raised #54, please test from your side |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When rolling back a changeSet, the corresponding data set (“row”) in the DATABASECHANGELOG Collection (“table”) will be removed. However, the object will NOT be rolled back.
I used the changeLog from here:
https://github.com/liquibase/liquibase-mongodb/blob/main/src/test/resources/liquibase/ext/changelog.create-collection.test.xml
STR
liquibase update
liquibase rollbackCount 1
liquibase update
againActual result:
The changeSet will fail with the message "collection already exists"
Expected result
The update should have been successful
The collection should have been dropped during the rollback
┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: