liquibase

“Unexpected error running Liquibase: Unknown Reason” liquibase 3.3.5 and grails war file

匿名 (未验证) 提交于 2019-12-03 10:10:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This is the command I am running: java - jar / root / liquibase / liquibase . jar \ -- driver = com . mysql . jdbc . Driver \ -- logLevel = debug \ -- changeLogFile = migrations / changelog . xml \ -- classpath = /usr/ share / tomcat7 / lib / mysql . jar : /var/ lib / tomcat7 / webapps / myApp . war \ -- url = "jdbc:mysql://127.0.0.1:3306/mydb" \ -- username = myuser \ -- password = mypass \ -- contexts = MYCONTEXT \ update this fails with the following unhelpful error message: Unexpected error running Liquibase : Unknown Reason

unable to fix liqibase maven plugin update sql during the process of building war file for mifos source code?

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: error during building war file.we r building war file for mifos source code through maven tool. mifos is java open source code. we use mvn clean package -Dmaven.test.skip=ture cmd and give path name til head folder of source code as shown below C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-e9d4674>mvn clean package -Dmaven.test. skip=true; [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.mifos:mifos- db:jar:1.8-SNAPSHOT [WARNING] 'build.plugins.plugin.

liquibase <insert> : Insert current date

家住魔仙堡 提交于 2019-12-03 09:26:09
I am trying to insert data using liquibase insert tag. It works fine when I am inputing a number to value tag . But I am looking for a simple function that will take care of default date (current DateTime of database) even when I don't have it as part of my table definition. Eg: <changeSet id="abc_1" author="Me"> <insert tableName="Emp" schemaName="XYZ"> <column name="name" value="Me"/> <column name="create_date" value ="1328055111692"/> <column name="profile_last_update" value="currentDateTimeFunction"/> <column name="group_name" value="BlahBlah"/> </insert> </changeSet> here <column name=

How to create database with Liquibase

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use Liquibase to create database that does not exists. I have downloaded MySQL and not made any change in it My maven plugin code looks like <plugins> <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>3.1.1</version> <configuration> <changeLogFile>src/main/resources/changelog.xml</changeLogFile> <driver>com.mysql.jdbc.Driver</driver> <url>jdbc:mysql://localhost:3306/myApp?createDatabaseIfNotExist=true</url> </configuration> <executions> <execution> <phase>process-resources<

Liquibase 3.0.1 Gradle integration

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We're using liquibase for database versioning and gradle as build tool. Currently we use liquibase in version 2.0.5 com.augusttechgroup:gradle-liquibase-plugin:0.7 Due to a bug in liquibase which was fixed in 2.0.5 we're forced to go to version 3.0.x. Unfortunately the gradle plugin doesn't work anymore. :dropAll Liquibase Update Failed: liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String

Spring boot - disable Liquibase at startup

风流意气都作罢 提交于 2019-12-03 05:37:07
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 ? Add liquibase.enabled=false in your application.properties file Reference But if you don't want to use liquibase from application anymore, remove liquibase starter altogether

How can I force Liquibase to recalculate checksums without re-running the statements?

不问归期 提交于 2019-12-03 05:26:12
问题 We're using Liquibase 3.2 with Java 6. Is there a way I can force Liquibase to recalculate checksums without re-running the same statements from our Liquibase files? In our database, I run this ... update DATABASECHANGELOG set md5sum = null where 1; However, when I run my Liquibase change scripts, certain executions still fail with the following errors ... invoking liquibase change script with file /tmp/deploywork/db.changelog-master.xml running /usr/java/liquibase/liquibase --logLevel=info -

Setting up Liquibase with MS-SQL Server

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am utilising Liquibase (www.liquibase.org) into our MVC3 SQL Server 2008 project to manage database migration/changes. However I'm stumbling on the first hurdle: Connecting to Microsoft SQL Server instance. I am looking at the quick start tutorial on the liquibase site, but exchanging the mysql for sql server DB I run this command: liquibase -- driver = sqljdbc . jar -- changeLogFile = "C:\Temp\ChangeLog.xml" -- url = "jdbc:sqlserver://localhost;databaseName=test" -- username = user -- password = pass migrate And receive this

Running liquibase within Java code

ぃ、小莉子 提交于 2019-12-03 02:18:36
问题 For some reason there's no documentation on running liquibase inside Java code. I want to generate tables for Unit tests. How would I run it directly in Java? e.g. Liquibase liquibase = new Liquibase() liquibase.runUpdates() ? 回答1: It should be something like (taken from liquibase.integration.spring.SpringLiquibase source): java.sql.Connection c = YOUR_CONNECTION; Liquibase liquibase = null; try { Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new

Liquibase checksum validation error without any changes

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Maven fires liquibase validation fail even no changes was made in changeset. My database is oracle. Situation: In DB changelog table was record for changeset ; Then by mistake i added another changeset Reruned liquibase scripts Maven fired checksum validation error. Then i changed hsqldb changeSet to Maven still firing checksum validation error. Then i changed first changeSet checksum in DB manually to current checkSum and scripts runned successfully. Everything looks nice ,but when i redeploy whole application and run liquibase scripts