liquibase

Performing checks on Liquibase scripts

一个人想着一个人 提交于 2019-12-24 20:54:45
问题 I regularly face issues when deploying my Liquibase scripts on Oracle, because I don't have an easy way to run them before I deploy them. They always run fine on a fresh H2 DB, but when I deploy in the pipeline, I often face basic issues. I would like to implement some quality checks on my scripts before they are deployed, typically as part of the build. Is there an easy way to do that ? For example, something basic like checking that column and table names are not too long for Oracle..

liquibase checksum validation error is even after updating changelog in master.xml

痴心易碎 提交于 2019-12-24 19:36:01
问题 I am using postgresql in jhipster microservices application. I am following jhipster documentation as below. Database updates with the Maven liquibase:diff goal If you have choosen to use MySQL, MariaDB or PostgreSQL in development, you can use the ./mvnw liquibase:diff goal to automatically generate a changelog. If you are running H2 with disk-based persistence, this workflow is not yet working perfectly, but you can start trying to use it (and send us feedback!). Liquibase Hibernate is a

How to use Liquibase programatically in java?

蓝咒 提交于 2019-12-24 14:16:00
问题 I am new to Liquibase and have successfully generated the ddl scripts for the given change log. I used the change set as an xml and generated the ddl scripts using the maven goal liquibase:updateSQl .I also used the liquibase.properies for specifying the url , driver , dialect etc This worked fine for me and I used the liquibase version 3.5.5 . I was trying to do the same using the java code with the liquibase 3.5.5 added as my maven dependency. But I can't achieve the same using java code.

Liquibase Data Type Mapping documentation

安稳与你 提交于 2019-12-24 11:44:19
问题 Sorry, this question seems stupid, but I tried 1 hour searching and didn't find anything. So I'm using liquibase for multiple databases(e.g. MSSQL, Oracle and MySQL), when I say: addColumn(tableName: "ABC_TEST") { column(name: "IS_ACTIVE", type: "boolean") } How do I know if the type "boolean" will be converted to proper types for each database? And is there any documentation I can find for the data type mapping? If I want to add one more column which is foreign key, which type should I use?

getting started with liquibase on snowflake

我们两清 提交于 2019-12-24 08:54:59
问题 I am trying to get started with liquibase on snowflake. I think I am almost there with the liquibase.properties file driver: net.snowflake.client.jdbc.SnowflakeDriver classpath: ./liquibase-snowflake-1.0.jar url: jdbc:snowflake://XXXXXX.us-east-1.snowflakecomputing.com username: YYYYYYYYY password: ZZZZZZZZZZ changeLogFile: mySnowflakeChangeLog.xml Unfortunately, liquibase complains about not having a "current database" when trying to create the tables databasechangelog and/or

Value 'CONTINUE' is not facet-valid error on running liquibase

不想你离开。 提交于 2019-12-24 08:30:05
问题 When i try to run the following command: java -jar liquibase-3.4.1.jar --classpath=postgresql-9.2-1004.jdbc4.jar --logLevel=severe --url=jdbc:postgresql://localhost/raritan --username=<USER>--password=<PWD> --changeLogFile=master_changelog.xml update I get the following exception: SEVERE 8/29/16 12:46 PM: liquibase: Error parsing line 7 column 35 of changelogdropViews.xml: cvc-enumeration-valid: Value 'CONTINUE' is not facet-valid withespect to enumeration '[HALT, WARN]'. It must be a value

Error when use JDL in Jhipster

女生的网名这么多〃 提交于 2019-12-24 06:35:09
问题 I have a problem when use JDL in Jhipster. I design my entities with JDL-Studio, this is jhipster-jdl.jh file after created: entity Member { fullName String required maxlength(100), birthDay LocalDate, address String maxlength(100), phone String maxlength(12), avatar String maxlength(100), aboutMe String maxlength(5000), systemStatus SystemStatus required, star Integer required } entity RealEstate { useFor UseFor required, location String maxlength(100), address String required maxlength(100)

Liquibase + Postgresql + Spring Jpa : Id auto increment issue

爷,独闯天下 提交于 2019-12-24 05:16:09
问题 I have the following Id description in the entity: @Id @GeneratedValue(strategy= GenerationType.IDENTITY) private Long id; Liquibase instruction for generate this id is following : <column name="id" autoIncrement="true" type="INT"> <constraints nullable="false" primaryKey="true" primaryKeyName="pk_entity"/> </column> Also I have liquibase scripts that insert to this table predefined values, e.g. <insert tableName="entityTable" schemaName="public"> <column name="id">1</column> <!- other fields

includeAll path=“” not working in 3.5.3, using java -jar method

让人想犯罪 __ 提交于 2019-12-24 02:54:16
问题 We are having a major issue where the relative path is not working inside the databaseChangeLogMaster.xml file when using includeAll. includeAll works only with absolute path. Example is below: below does not work: <includeAll path="sql/relativetest" /> below works fine: <includeAll path="file:/oravl01/oracle/erd_folder/payment/capm/sql/function/" /> when we run the liquibase update using the "java -jar" method we get error for the relative path, below is the error, any help will be highly

Liquibase 3.3.3 refusing to run “due to maven configuration”

谁说胖子不能爱 提交于 2019-12-24 02:54:07
问题 Did something change in liquibase between version 2 and version 3? I have the following in my pom file... <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>3.3.3</version> <configuration> <changeLogFile>src/main/resources/liquibase/liquibase-changesets.xml</changeLogFile> <driver>${db.liquibase.driver}</driver> <username>${db.liquibase.username}</username> <password>${db.liquibase.password}</password> <url>${db.liquibase.url}</url>