liquibase

Unexpected error running Liquibase: Invalid `addFulltextConstraint`

雨燕双飞 提交于 2019-12-11 20:05:27
问题 Okay so Im new to Liquibase and this might be a silly question, but... Im running a update script to generate the database. When I run the script I get this message (well this is a scaled down version to make it more readable ). This script was created by someone who has been doing it for a while, but Im trying to figure out if its a bug or if Im doing something wrong. Anyway here is the output. liquibase update Unexpected error running Liquibase: Error parsing line 5076 column 153 of 01_base

liquibase generate sql between 2 changelogs

主宰稳场 提交于 2019-12-11 19:57:11
问题 We currently use liquibase to version control our mysql database, however, we are not allowed to run liquibase on production. The first time we deployed we did an sql dump of the database, which was the amalgamation of all the changelogs to date. So say the changelog currently is at changelog 128 on production. How do I generate the sql of changelogs from 128 to 140 in liquibase? 回答1: You can use updateSQL to output the changes to a SQL delta script file instead of the database directly.

Liquibase script returns ORA-01843: not a valid month

十年热恋 提交于 2019-12-11 16:43:07
问题 I have trouble with the following liquibase script: <sql> MERGE INTO A config USING (SELECT 100 as id, '02.01.15 12:00:00' as CHANGED, 0 as DELETED, 1 as B FROM DUAL) src ON (src.id = config.id) WHEN NOT MATCHED THEN INSERT(id,CHANGED, DELETED, B) VALUES(src.id, src.CHANGED, src.DELETED, src.B) WHEN MATCHED THEN UPDATE SET config.B = src.B; </sql> When I insert raw code between sql tags and run under the database (in SQL Developer), the result is: 1 row merged. When I run this via liquibase I

Liquibase Unsupported major.minor version 51.0

不想你离开。 提交于 2019-12-11 15:02:38
问题 I am attempting to set up Liquibase 3.6.1 on a solaris VM. My JRE is 1.6.0_151-b10. My Liquibase.properties file is configured as follows: driver:oracle.jdbc.OracleDriver classpath:/export/home/oracle/Liquibase/lib/OJDBC-Full/ojdbc6.jar url:jdbc:oracle:thin:@db:port/instance username:uname password:pword When calling "./Liquibase --version" (for example), I get an error. Exception in thread "main" java.lang.UnsupportedClassVersionError: Liquibase/integration/commandline/Main : Unsupported

Liquibase and SQLite

六眼飞鱼酱① 提交于 2019-12-11 13:23:14
问题 How do I go about actually creating a SQLite DB-file? This command won't work: liquibase --driver=jdbc.driver.sqlite --changeLogFile=assets_db.xml --url=file.db update With the error: Migration Failed: Cannot find database driver: jdbc.driver.sqlite 回答1: It seems that you don't have the sqlite JDBC driver. Have you downloaded the JDBC driver for sqlite? If not try this one: http://www.zentus.com/sqlitejdbc/ And the correct liquibase command will be: liquibase --driver=org.sqlite.JDBC Hope

Generate Changelog with Liquibase and JPA Entities

不打扰是莪最后的温柔 提交于 2019-12-11 12:44:18
问题 I would like to introduce liquibase to my project and first of all I would like to generate a changelog file according my hibernate entities. What I have so far: application.properties # HIBERNATE # Write out schema into sql script spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=target/schema-h2.sql spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create spring.jpa.hibernate.ddl-auto=validate spring.jpa.properties.hibernate.dialect=org

How to execute a third party jar using maven

半世苍凉 提交于 2019-12-11 12:35:26
问题 I am using Liquibase (via its Maven plugin) to handle database migrations. However not all Liquibase features are available via Maven. One in particular, Generate Changelog, is only available via the command line (using the downloadable liquibase.jar) with a command like this: java -jar liquibase.jar \ --driver=oracle.jdbc.OracleDriver \ --classpath=\path\to\classes:jdbcdriver.jar \ --changeLogFile=com/example/db.changelog.xml \ --url="jdbc:oracle:thin:@localhost:1521:XE" \ --username=scott \

Rollback is not working in oracle using liquibase

折月煮酒 提交于 2019-12-11 09:59:39
问题 I'm new to Liquibase. I can able to update(changeset which has create table) to the Oracle database using liquibase. while doing update i've created the tag also. But when i try to rollback the updated changes(ie dropping the created table)using the tag. The table was not dropped. I'm using liquibase-maven plugin 3.4.2. Below are the code in maven. <plugins> <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>3.4.2</version> <executions>

SQL Server Foreign Key cause cycles or multiple cascade paths

假如想象 提交于 2019-12-11 09:47:50
问题 I'm having problems adding a cascade delete onto a foreign key in SQL Server. Table A has three columns. Column 1 and 2 in Table A are foreign key look ups to the same column in Table B. I want a delete of a row in Table B to cascade a delete on a row on Table A based on these foreign keys. The other column in Table A has a foreign key lookup to table C. If a row in table C is deleted then I want the corresponding cell to be set to null in Table A. When I add in these constraints I am thrown

Rename Liquibase changelog tables with spring boot

流过昼夜 提交于 2019-12-11 09:43:36
问题 I'm using Liquibase (v 3.5.3) together with Spring Boot (v 1.5.3) . I want to change liquibase changelog tables names using spring boot properties file. The only way I found to do this is setting liquibase.databaseChangeLogTableName and liquibase.databaseChangeLogLockTableName system properties to override default table names. Is there any alternative way to override default liquibase table names using spring boot properties file instead of setting system properties? 回答1: Have the same issue