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 4.29.2 Fails to Update HANA database #228

Open
nrudisill opened this issue Nov 6, 2024 · 0 comments
Open

Liquibase 4.29.2 Fails to Update HANA database #228

nrudisill opened this issue Nov 6, 2024 · 0 comments

Comments

@nrudisill
Copy link

This is my code which works with liquibase-core 4.14.0 but not with 4.29.2. Because of vulnerabilities in dependencies of liquibase-core I’ve upgraded liquibase-core and liquibase-hanadb to 4.29.2. I have also upgraded the ngdbc to 2.21.11.

pom.xml:

<dependency>
  <groupId>com.sap.cloud.db.jdbc</groupId>
  <artifactId>ngdbc</artifactId>
  <version>2.21.11</version>
</dependency>
<dependency>
  <groupId>org.liquibase</groupId>
  <artifactId>liquibase-core</artifactId>
  <version>4.29.2</version>
</dependency>
<dependency>
  <groupId>org.liquibase.ext</groupId>
  <artifactId>liquibase-hanadb</artifactId>
  <version>4.29.2</version>
</dependency>

Relevant Code:

HanaDatabase hdb = new HanaDatabase();
hdb.setConnection(new JdbcConnection(connection));
hdb.setDefaultSchemaName(db.getName());
Liquibase liquibase = new liquibase.Liquibase(path, new ClassLoaderResourceAccessor(), hdb);
liquibase.update(new Contexts(), new LabelExpression());
liquibase.close();

I get the following error:

ERROR: Exception Details
ERROR: Exception Primary Class:  ValidationFailedException
ERROR: Exception Primary Reason:  Validation Failed:
     43 changes have validation failures
          hana is not a supported DB
          hana is not a supported DB
          hana is not a supported DB
...

I have looked into using the CommandScope as outlined here but have had no luck: https://contribute.liquibase.com/extensions-integrations/integration-guides/calling-commands/

The vulnerability exists in liquibase-core up to and including 4.20.0. Any version after 4.20.0 and I get the above issue. Does anyone have Java code working to do Liquibase updates to HANA with liquibase 4.29.2?

Thank You,
Nate

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

1 participant