liquibase

liquibase gradle postgresql wrong driver

吃可爱长大的小学妹 提交于 2021-01-27 21:24:36
问题 Environment: Spring boot (STS 3.9.1) Gradle 2.13 Postgresql 9.6.5 Liquibase Gradle plugin (liquibase-gradle-plugin:1.2.4) Scenario: We have a spring boot rest api, we want it to have a CI process that updates the database at a stage of the process, for this we want to use gradle for it buildscript { repositories { mavenCentral() } dependencies { classpath('org.springframework.boot:spring-boot-gradle-plugin:1.5.7.RELEASE') // tag::build[] classpath('se.transmode.gradle:gradle-docker:1.2') //

Update one row in the table, using liquibase

懵懂的女人 提交于 2021-01-20 18:47:46
问题 I was hoping if someone could verify if this is the correct syntax and correct way of populating the DB using liquibase? All, I want is to change value of a row in a table and I'm doing it like this: <changeSet author="name" id="1231"> <update tableName="SomeTable"> <column name="Properties" value="1" /> <where>PROPERTYNAME = 'someNameOfThePropery"</where> </update> <changeSet> All I want is to change one value in a row in some table. The above doesn't work, although application compiled and

How to solve liquibase waiting for changelog lock problem in several pods in OpenShift cluster?

 ̄綄美尐妖づ 提交于 2021-01-16 03:52:52
问题 Please say something about this problem: We are supporting several microservices written in Java using Spring Boot and deployed in OpenShift. Some microservices communacates with databases. We often run a single microservice in multiple pods in a single deployment. When each microservice starts, it starts liquibase, which tries to update the database. The problem is that sometimes one pod fails with waiting for the changelog lock issue. When for some reason this happens in production

“Cannot find database driver: Driver class was not specified and could not be determined from the url” error on using liquibase-hibernate plugin

三世轮回 提交于 2021-01-04 05:57:46
问题 I am trying to generate changeLog from diff s between a Database and Persistence Entities. I am using the liquibase hibernate plugin <plugins> <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>3.4.1</version> <configuration> <propertyFile>src/main/resources/liquibase.properties</propertyFile> </configuration> <dependencies> <dependency> <groupId>org.liquibase.ext</groupId> <artifactId>liquibase-hibernate4</artifactId> <version>3.5</version> <

“Cannot find database driver: Driver class was not specified and could not be determined from the url” error on using liquibase-hibernate plugin

做~自己de王妃 提交于 2021-01-04 05:56:32
问题 I am trying to generate changeLog from diff s between a Database and Persistence Entities. I am using the liquibase hibernate plugin <plugins> <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>3.4.1</version> <configuration> <propertyFile>src/main/resources/liquibase.properties</propertyFile> </configuration> <dependencies> <dependency> <groupId>org.liquibase.ext</groupId> <artifactId>liquibase-hibernate4</artifactId> <version>3.5</version> <

How to fix SQL syntax error using liquibase and mysql to create trigger

白昼怎懂夜的黑 提交于 2021-01-03 06:51:28
问题 I am setting up first liquibase maven project for a MySQL DB. Been fine up to creating the triggers. I believe it is an issue with liquibase and JDBC not correctly handling a multiple statement SQL, but I cannot figure out what I am missing. Here are my pom dependancies <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-parent</artifactId> <version>3.5.3</version> <type>pom</type> </dependency> <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core<

How to fix SQL syntax error using liquibase and mysql to create trigger

给你一囗甜甜゛ 提交于 2021-01-03 06:49:24
问题 I am setting up first liquibase maven project for a MySQL DB. Been fine up to creating the triggers. I believe it is an issue with liquibase and JDBC not correctly handling a multiple statement SQL, but I cannot figure out what I am missing. Here are my pom dependancies <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-parent</artifactId> <version>3.5.3</version> <type>pom</type> </dependency> <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core<

How to fix SQL syntax error using liquibase and mysql to create trigger

北战南征 提交于 2021-01-03 06:48:21
问题 I am setting up first liquibase maven project for a MySQL DB. Been fine up to creating the triggers. I believe it is an issue with liquibase and JDBC not correctly handling a multiple statement SQL, but I cannot figure out what I am missing. Here are my pom dependancies <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-parent</artifactId> <version>3.5.3</version> <type>pom</type> </dependency> <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core<

Different paramaters in one liquibase .properties file possible?

*爱你&永不变心* 提交于 2020-12-15 06:12:01
问题 Hey all I am wondering if its possible to place different .properties inside just one .properties file so that I do not have to make a seprate .praperties file for each of my database? This site here is doing what I would like to do but it doesnt explain how to go about sending those contexts to the .properties file. And it also seems to be using seprate .properties files. As in, it doesnt show me how it should look inside the .properties file. Another good example is here but again, it

Different paramaters in one liquibase .properties file possible?

孤者浪人 提交于 2020-12-15 06:11:17
问题 Hey all I am wondering if its possible to place different .properties inside just one .properties file so that I do not have to make a seprate .praperties file for each of my database? This site here is doing what I would like to do but it doesnt explain how to go about sending those contexts to the .properties file. And it also seems to be using seprate .properties files. As in, it doesnt show me how it should look inside the .properties file. Another good example is here but again, it