liquibase

liquibase 3.5.X can't find any files for includeAll with relative path

ⅰ亾dé卋堺 提交于 2019-11-29 03:56:26
We are using liquibase 3.4.2 and want to update to 3.5.3 but all my attempts failed because liquibase doesn't find any file which are included by using includeAll . I have tested liquibase 3.5.0, 3.5.1 and 3.5.3 (I skipped 3.5.2 because of this blog post ). My ChangeSet looks like this: <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext

Liquibase or Flyway database migration alternative for Elasticsearch

痴心易碎 提交于 2019-11-28 19:14:19
I am pretty new to ES. I have been trying to search for a db migration tool for long and I could not find one. I am wondering if anyone could help to point me to the right direction. I would be using Elasticsearch as a primary datastore in my project. I would like to version all mapping and configuration changes / data import / data upgrades scripts which I run as I develop new modules in my project. In the past I used database versioning tools like Flyway or Liquibase. Are there any frameworks / scripts or methods I could use with ES to achieve something similar ? Does anyone have any

Liquibase checksum validation error without any changes

爱⌒轻易说出口 提交于 2019-11-28 19:07:46
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 <changeSet id="1" author="me" dbms="oracle"> ; Then by mistake i added another changeset <changeSet id="1" author="me" dbms="hsqldb"> Reruned liquibase scripts Maven fired checksum validation error. Then i changed hsqldb changeSet to <changeSet id="2" author="me" dbms="hsqldb"> Maven still firing checksum validation error. Then i changed first changeSet checksum in DB manually to current checkSum and scripts runned successfully.

How to tag a changeset in liquibase to rollback

Deadly 提交于 2019-11-28 17:04:00
I have configured the maven pluggin for liquibase as specified in maven configuration . Now created a changeset like :- <changeSet id="changeRollback" author="nvoxland"> <createTable tableName="changeRollback1"> <column name="id" type="int"/> </createTable> <rollback> <dropTable tableName="changeRollback1"/> </rollback> </changeSet> Created the sql to update DB using command line :- mvn liquibase:updateSQL But just want to know how to rollback using a "rollbackTag" parameter. i.e. If run the command " mvn liquibase:rollbackSQL ", what should be the value of "rollbackTag" parameter. And is it

liquibase using maven with two databases does not work

回眸只為那壹抹淺笑 提交于 2019-11-28 13:46:39
This post describes how to update two databases from maven using liquibase: liquibase using maven with two databases However, when I try the exact same configuration in my pom.xml (included below) it does not work. I get this error when running 'mvn liquibase:update': The driver has not been specified either as a parameter or in a properties file. Running with verbose set to true I get: [INFO] Settings---------------------------- [INFO] driver: null [INFO] url: null [INFO] username: null [INFO] password: null so looks like the configuration is not being passed to liquibase. If the

Liquibase/PostgreSQL: how to preserve table case correctly?

こ雲淡風輕ζ 提交于 2019-11-28 05:01:52
问题 I'm using Liquibase 3.1.1 to create tables in PostgreSQL 9.1. For example: <changeSet id="1" author="bob"> <createTable tableName="BATCHES"> <!-- .. -- > </createTable> </changeSet> However, the table gets created with a lowercase name: # select * from "BATCHES"; ERROR: relation "BATCHES" does not exist Is there any way to have Liquibase generate DDL that preserves the case of the table (and column etc) names that I specify in the change log? 回答1: You can use the objectQuotingStrategy="QUOTE

Liquibase lock - reasons?

我怕爱的太早我们不能终老 提交于 2019-11-28 02:45:47
I get this when running a lot of liquibase-scripts against a Oracle-server. SomeComputer is me. Waiting for changelog lock.... Waiting for changelog lock.... Waiting for changelog lock.... Waiting for changelog lock.... Waiting for changelog lock.... Waiting for changelog lock.... Waiting for changelog lock.... Liquibase Update Failed: Could not acquire change log lock. Currently locked by SomeComputer (192.168.15.X) since 2013-03-20 13:39 SEVERE 2013-03-20 16:59:liquibase: Could not acquire change log lock. Currently locked by SomeComputer (192.168.15.X) since 2013-03-20 13:39 liquibase

configure dataSource for liquibase in spring boot

与世无争的帅哥 提交于 2019-11-28 00:26:09
问题 I have a spring boot application and I want to add liquibase configuration change log for it. I have created a LiquibaseConfig class for configuring liquibase: @Configuration public class LiquibaseConfiguration { @Value("${com.foo.bar.liquibase.changelog}") private String changelog; @Autowired MysqlDataSource dataSource; @Bean public SpringLiquibase liquibase() { SpringLiquibase liquibase = new SpringLiquibase(); liquibase.setDataSource(dataSource); liquibase.setChangeLog(changelog); return

Liquibase or Flyway database migration alternative for Elasticsearch

二次信任 提交于 2019-11-27 20:30:10
问题 I am pretty new to ES. I have been trying to search for a db migration tool for long and I could not find one. I am wondering if anyone could help to point me to the right direction. I would be using Elasticsearch as a primary datastore in my project. I would like to version all mapping and configuration changes / data import / data upgrades scripts which I run as I develop new modules in my project. In the past I used database versioning tools like Flyway or Liquibase. Are there any

SpringBoot 整合 liquibase

我们两清 提交于 2019-11-27 16:22:07
SpringBoot 整合 liquibase LiquiBase 是一个用于数据库重构和迁移的开源工具,通过日志文件的形式记录数据库的变更,然后执行日志文件中的修改,将数据库更新或回滚到一致的状态。它的目标是提供一种数据库类型无关的解决方案,通过执行schema类型的文件来达到迁移。其有点主要有以下: 支持几乎所有主流的数据库,如MySQL, PostgreSQL, Oracle, Sql Server, DB2等; 支持多开发者的协作维护; 日志文件支持多种格式,如XML, YAML, JSON, SQL等; 支持多种运行方式,如命令行、Spring集成、Maven插件、Gradle插件等。 liquibase 官方文档地址:http://www.liquibase.org/documentation/index.html 一、引入依赖 先在 pom 文件里引入依赖 <dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core</artifactId> </dependency> 二、指定配置文件位置 在代码中新建一个 LiquibaseConfig 类,用于配置 Liquibase ,指定配置文件的位置。 import javax . sql . DataSource ; import