liquibase

Database Migration from one version to another using Liquibase

百般思念 提交于 2019-12-11 07:49:05
问题 I rolled out the first version of application and a Postgres server is set up for the same. I am planning to roll out my second version of my application which has structural changes in my tables. For example : I had App table with a column called version , now I have another column called releaseVersion and I have to apply alter to add this column.In such a case, how can I use liquibase to generate/apply the migration script? Is liquibase capable of such migration .? In short, for my first

Liquibase integrated with a Tapestry and Hibernate: initial schema creation step

安稳与你 提交于 2019-12-11 07:38:09
问题 I have the project based on Tapestry framework. It uses Hibernate as ORM library. My classes are mapped to database using annotations . I would like to integrate Liquibase into my project to be able to maintance database state, doing version updates. What I have done till this moment is the following steps: 1) I've created service pair: LiquibaseService -> LiquibaseServiceImpl . LiquibaseSerivce has method public void update() , which creates independent DataSource from hibernate.cfg.xml

Liquibase Diff Tool missing constraints

瘦欲@ 提交于 2019-12-11 06:38:31
问题 We are using with my company Liquibase's diff tool to check schema relevancy of our clients MySQL and Oracle databases automatically via jUNIT tests. For that point Liquibase is great. Our problem is that Liquibase seems to "miss" some Foreign Key renaming where other tools like SQL examiner or RedGate MySQL compare seem to find all the foreign key naming differences. This feature is very important for us whereas we need to keep exact schema consistency for maintenance operations (DROP

Liquibase - Generating Change Logs

柔情痞子 提交于 2019-12-11 06:26:47
问题 I want Liquibase, to generate a changelog, from this DB 'testing'. Is it possible? I have an existing database already, with its tables and data inside. jdbc:mysql://localhost:3306/testing Now, I want Liquibase, to generate a changelog, from this DB 'testing'. Is it possible? This is my command, but it doesn't work. liquibase --driver=com.mysql.jdbc.Driver --classpath=C:\mysql-connector-java-5.1.47.jar --changeLogFile=C:\db.changelog.xml --url="jdbc:mysql://localhost:3306/testing" --username

An attempt by a client to checkout a Connection has timed out

假如想象 提交于 2019-12-11 05:42:19
问题 Please, can someone help? I am trying to run the application but it keeps getting this error. Did someone have a similar problem? Running gradle app 2019-01-07 23:29:19.827 WARN 4450 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/wikbit/configuration

How do I use --logLevel in Liquibase

随声附和 提交于 2019-12-11 04:48:43
问题 It doesn't seem to matter what I set it to, I don't get anything that looks like additional information: liquibase --url="jdbc:informix-sqli:INFORMIXSERVER=informix01_tcp;SQLH_TYPE=FILE;SQLH_FILE=/opt/informix/informix/etc/sqlhosts;DATABASE=wallet" --logLevel= debug --logFile=./lb.log --classpath=/opt/informix/informix/jdbc/lib/ifxjdbc.jar --changeLogFile ./test1ChangeLog.xml --includeTablespace=true generateChangeLog Starting Liquibase at Thu, 07 Mar 2019 12:30:34 GMT (version 3.6.3 built at

Liquibase : link main yaml changelog from test

家住魔仙堡 提交于 2019-12-11 04:21:12
问题 I want to link yaml database creation rules from src/main/resources.. in src/test/resources and add one more chagngelog with sample data. src\test\resources\db\changelog\db.changelog-master.yaml : databaseChangeLog: - include: file: ../../main/resources/db/changelog/db.changelog-master.yaml - include: file: db/changelog/marketplace/sampleData.yaml But it doesn't work. So, the error is : Error parsing ../../main/resources/db/changelog/db.changelog-master.yaml Is there any other options to link

Liquibase: Does not honor schema name for H2, but MySQL is fine

泪湿孤枕 提交于 2019-12-11 04:16:12
问题 I am using maven cargo to deploy my Spring application. I am trying to run this against MySQL and H2 embedded database. The configuration for H2 looks like @Configuration @Profile("development") public class H2DatabaseConfig extends JpaCommonConfig { @Override public DataSource dataSource() { // (todo: harit) get rid of hard coding System.out.println("This is H2 Database Profile"); final BasicDataSource dataSource = new BasicDataSource(); dataSource.setDriverClassName("org.h2.Driver");

How do I differentiate between databases when using e.g. sequence

隐身守侯 提交于 2019-12-11 02:42:56
问题 I just started using Liquibase and stumpled upon the problem to differentiate between the capabilities of different databases. We would like to support multiple databases (Oracle, MySQL, Derby - to name three). The all have different capabilities. In specific Oracle supports sequences whereas MySQL and Derby do not. When I let hibernate generate the DDL I can choose different dialects and it will consider these different capabilities and generate a Sequencer when using Oracle and use a plain

Maven build failing with Liquibase: cvc-elt.1 declaration of element cannot be found

梦想与她 提交于 2019-12-11 02:37:33
问题 I'm completely new to Liquibase and I setup a rather simple project to become familiar with Liquibase. Unfortenately, I seem to fail at the very first steps which is very frustrating. First my changelog.xml: <?xml version="1.0" encoding="UTF-8"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog