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

liquibase-mongodb smash-up with createIndex on relational Databases #275

Open
LeBezout opened this issue Jul 7, 2022 · 2 comments
Open

Comments

@LeBezout
Copy link

LeBezout commented Jul 7, 2022

2 issues on relational database (h2 for the example) when liquibase-mongodb is in the classpath

Hi, i have installed the liquibase-mongodb extension 4.12.0 to the liquibase (also 4.12.0) "lib" folder with the following dependencies :

  • bson-4.6.1.jar
  • jackson-annotations-2.11.3.jar
  • jackson-core-2.11.3.jar
  • jackson-databind-2.11.3.jar
  • liquibase-mongodb-4.12.0.jar
  • mongodb-driver-core-4.6.1.jar
  • mongodb-driver-sync-4.6.1.jar

When I execute liquibase commands against a non-Mongo project i'm facing two kinds of issue :

  1. [liquibase.integration] dropIndex is not supported on h2
  2. Validation Failed: 3 change sets check sum

The 2 issues seems to be relative to the createIndex change.

Samples projects to reproduce

  1. https://github.com/LeBezout/liquibase-mongodbext-issue-rollback
  2. https://github.com/LeBezout/liquibase-mongodbext-issue-checksums

Bonus : different sizes for the same artifact

Version 4.12.0

What could explain this?

@kabroxiko
Copy link

kabroxiko commented Sep 7, 2022

I found the problem with version 4.15.0. the mongodb createIndex method override the core method

without plugin against mariadb:
image

with plugin against mariadb:
image

@LeBezout
Copy link
Author

LeBezout commented Mar 4, 2023

It also fail on (auto)rollback (here against MySQL) :

liquibase.exception.RollbackImpossibleException: liquibase.exception.RollbackImpossibleException: dropIndex is not supported on mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants