Questions tagged [liquibase-maven-plugin]

28 questions
3
votes
2 answers

Spring Boot Liquibase does not recognize databasechangelog execution

I'm struggling to make Spring Boot Liquibase identify the changes that are already in the database Liquibase was added to an existent database following these steps: execute a generated-changelog (to create the databasechangelog table based on…
2
votes
0 answers

Found 2 files with the path - migration liquibase from 3.7.0 to 4.15.0

I am migrating a spring boot app from 2.1.8.RELEASE to 2.7.7. I am getting a liquibase error when running integrations tests with h2. Caused by: java.io.IOException: Found 2 files with the path '../sqlFiles/file_name.sql' -…
Amir Choubani
  • 829
  • 2
  • 14
  • 28
2
votes
0 answers

Liquibase precondition sql check returns incorrect result

I've been struggling to troubleshoot and fix this problem for few days now. The liquibase changeset are not running due to sql check. -- changeset ryanjan:1 context:staging -- preconditions onFail:MARK_RAN onError:MARK_RAN -- precondition-sql-check…
Rye
  • 445
  • 4
  • 15
1
vote
0 answers

Liquibase for opensearch/ elasticsearch

I have been using Liquibase for maintaining postgreSQL changes.Is there a way I can use it in the same manner with Opensearch/ Elasticsearch? Is there any existing plugin, or any future plan to support another noSQL database such as opensearch? I…
1
vote
1 answer

Liquibase is not recalculating MD5SUM from previous versions

I've looked everywhere but I'm not able to find an answer to this. Because of some liquibase migration errors someone suggested to recalculate md5sum from the records in our databasechangelog. The only ones that are recalculated is from the latest…
1
vote
0 answers

How to get rid of Liquibase 4.0 error : Please use a relative path or add '/' to the classpath parameter

How to solve this error? Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add '/' to the classpath parameter. Suppose I don't have the liquibase installed. I just want to run my Spring project connected…
1
vote
2 answers

JSONB usage with liquibase-hibernate5 not supported through liquibase maven plugin?

I am trying to get JSONB type working with liquibase-hibernate5 extension, but without any luck. I am using liquibase core and the extension version 4.10. I am using liquibase within Spring boot 2.5.14. I have added my own dialect file of Postgres…
1
vote
1 answer

Liquibase Maven Plugin: how to increase changelog lock wait time?

I have a maven spring project using liquibase. At the moment we have multiple instances deploying but sometimes the deployment will fail because the lock will last more than five minutes, due to the size of the changes. How can I change the changlog…
Heschoon
  • 2,915
  • 9
  • 26
  • 55
0
votes
0 answers

liquibase-hibernate6: java.lang.UnsupportedOperationException: The application must supply JDBC connections

I've tried adding Liquibase to my project and to get the diff between entities and the database I've also added liquibase-hibernate6 to POM file. When I try the command: mvn liquibase:diff I get there error: [WARNING] HHH000181: No appropriate…
0
votes
0 answers

Liquibase error IDENTITY_INSERT is set to OFF

I am using Liquibase tool for database migration from one database(MSSQL) to other database(MSSQL). I am able to generate change xml file using generateChangeLog command which has create and insert queries. so far its good. Now when I try to execute…
0
votes
0 answers

Rollback using Spring Boot Application in Liquibase

I have a module in my project which contains Liquibase Changelogs and Changesets The module contains one simple java class which calls Liquibase and executes all the changesets present in the changelog: The java file is something like this: package…
0
votes
0 answers

Liquibase generate JPA entities diff springboot kotlin

I think this question has been asked prior but I am having a hard time configuring liquibase to work with spring-boot-kotlin (gradle). I want to generate liquibase change-log and change-set files basing on JPA entities - the requirement is to define…
0
votes
1 answer

How to specify tag values in Liquibase changelog/changeset XML?

I have a changelog file which contains multiple changesets like this: .. .. I want…
0
votes
0 answers

Read spring properties from liquibase properties

I have a Spring Boot application that reads a property file defined in "D:\Project\conf_files". @PropertySource(value = {"file:D:\\\\Project\\\\conf_files\\\\internal.properties"}, ignoreResourceNotFound = false) public class MyApplication extends…
Z4N4TI
  • 79
  • 1
  • 10
0
votes
0 answers

Exception while running liquibase diff in spring framework 6

Creating a new project in spring boot 3 using JDK 17. maven liquibase:diff - giving following errors : Caused by[m: java.lang.NoSuchMethodError: [1;31m'javax.persistence.spi.PersistenceUnitInfo…
1
2