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

Rollback doesn't work with liquibase-mongodb-4.0.0.2 extension #38

Closed
szandany opened this issue Sep 4, 2020 · 2 comments · Fixed by #54
Closed

Rollback doesn't work with liquibase-mongodb-4.0.0.2 extension #38

szandany opened this issue Sep 4, 2020 · 2 comments · Fixed by #54

Comments

@szandany
Copy link

szandany commented Sep 4, 2020

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

  1. Deploy the changeLog
  2. Run liquibase update
  3. Run liquibase rollbackCount 1
  4. Run liquibase update again

Actual 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

@mmarcon
Copy link

mmarcon commented Sep 10, 2020

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.

@alexandru-slobodcicov
Copy link

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
Labels
None yet
Projects
None yet
4 participants