liquibase

Grails 2.5: “dbm-gorm-diff” keeps generating the same changes over and over

帅比萌擦擦* 提交于 2019-12-22 09:48:56
问题 Firstly, we deleted the database and then ran our app with dbCreate="update" to create a nice working base. Then we ran: grails dbm-generate-changelog baseline.xml To create the script to generate our schema. We removed dbCreate=xxx from the DataSource.groovy and added the following in our Config.groovy : grails.plugin.databasemigration.updateOnStart = true grails.plugin.databasemigration.updateOnStartFileNames = ['changelog.groovy'] We then started our app, which created the DB, this time

Liquibase changelog parameters in liquibase.properties

冷暖自知 提交于 2019-12-22 05:15:24
问题 As per documentation parameter values are looked up in the following order: Passed as a parameter to your Liquibase runner (see Ant, command_line, etc. documentation for how to pass them) As a JVM system property In the parameters block ( Tag) of the DatabaseChangeLog file itself. Can I set these parameters in the standard properties file? 回答1: It is possible to put changelog parameters in liquibase.properties, or a custom --defaultsFile. Reading the source indicates that you must prefix the

how to use liquibase diffChangeLog with the current changelog as reference (to generate incremental change set)

雨燕双飞 提交于 2019-12-22 03:22:57
问题 I have an existing database and have used the generateChangeLog command line to create the initial changelog. This works fine :-) But now I want the developers to use all the tools/processes they know/use already to develop the database and code and use a script to generate any incremental change sets as appropriate. That is: do a diff against the current state of the developer's database (url/username/password in the properties file) using the current changelog (changeLogFile in the

Database Migration with Liquibase using different DBMS

限于喜欢 提交于 2019-12-21 19:38:13
问题 Our customer is using Oracle and we want to use MySQL for development. Therefore our MySQL Scheme has to be in sync with Oracle. I tried to use Liquibase, but I get problems at the time of applying a changeset because of the db specific sql and different column types like NUMBER <-> BIGINT or VARCHAR <-> VARCHAR2 Am I using these tools wrong? How to solve this type of problem? 回答1: Liquibase will attempt to convert standard types like "varchar", "int", "boolean", "datetime" to the correct

Liquibase - how to generate a changelog for existing database

折月煮酒 提交于 2019-12-21 03:50:11
问题 I'm trying to use liquibase for generating the changeLog, starting by snapshoting the current state of my database. Environment details: OS: Windows 7 32 x86, Java JDK 1.7, mysql jdbc driver from MySQL liquibase 2.0.5. I run the following from command line: liquibase --driver=com.mysql.jdbc.Driver --changeLogFile=./structure.xml --url="jdbc:mysql://mysql.mysite.com" --username=<myuser> --password=<mypass> generateChangeLog It runs fine, and generated the output file. But the output file just

Spring boot - disable Liquibase at startup

不想你离开。 提交于 2019-12-20 11:07:48
问题 I want to have Liquibase configured with my spring boot aplication, so I added dependencies to pom.xml and set the path to master.xml in application.properties. This works fine and Spring runs Liquibase at startup. The problem is that now I want to run Liquibase manually, not at startup of application. Should I completly disable Liquibase autoconfiguration or can i use it and only disable running evaluations at startup ? 回答1: Add liquibase.enabled=false in your application.properties file

How to get liquibase to log using slf4j?

扶醉桌前 提交于 2019-12-20 11:04:18
问题 A lot of people are unsure how to fix logging for liquibase, either to the console or file. Is it possible to make liquibase log to slf4j? 回答1: There is, but it is a little bit obscure. Quoting Fixing liquibase logging with SLF4J and Log4J: There's The Easy Way , by dropping in a dependency: <!-- your own standard logging dependencies --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.5</version> </dependency> <dependency> <groupId>org.slf4j</groupId

The web application [ROOT] appears to have started a thread named [pollingConfigurationSource] but has failed to stop it. Memory leak

假如想象 提交于 2019-12-20 04:34:10
问题 Hi i am getting memory leak error while running project. I am using spring boot + quards scheduler + liquibase + postgreSQL 9.6 . These are technologies we are using. Error: 12018-10-15 11:43:19.005 WARN [billing,,,] 19152 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [pollingConfigurationSource] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: sun.misc.Unsafe.park

Liquibase XML generator

霸气de小男生 提交于 2019-12-19 06:54:12
问题 Is there opensource/free liquibase (http://www.liquibase.org) xml generator? Alternative to "Power Architect and Liquibase combo". Where can I create database model and then transform it to Liquibase XML format or transform pure sql to Liquibase XML? 回答1: There isn't any available generator since I know. Actually you can do it by your own by using liquibase core classes. An example of use: // .. imports // create a changelog liquibase.changelog.DatabaseChangeLog databaseChangeLog = new

liquibase using maven with two databases

回眸只為那壹抹淺笑 提交于 2019-12-19 04:09:47
问题 i have the following structure to run one database from maven: <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-plugin</artifactId> <version>1.9.5.0</version> <executions> <execution> <phase>process-resources</phase> <configuration> <changeLogFile>src/main/resources/db.changelog.xml</changeLogFile> <driver>com.mysql.jdbc.Driver</driver> <url>jdbc:mysql://localhost:3306/charm</url> <username>***</username> <password>***</password> </configuration> <goals> <goal>update</goal> <