liquibase

Liquibase doesn't excecute changesets

为君一笑 提交于 2019-12-13 05:13:52
问题 I want to run Liquibase on startup but the changeset won't be executed. I'm currently writing a JavaFX application for University. For my DB (SQLite) connection I use Hibernate and for my DB integration I use Liquibase. Now I created a method that should execute/update the changesets. But when I start my application zero changesets has been executed and my DB has no Tables (except DATABASCHANGELOG) in it. This is my Main Class: package main; import javafx.application.Application; import

DDL command not created by liquibase when trying to run it from Java code

柔情痞子 提交于 2019-12-13 04:46:33
问题 Update: I think the problem is this line because it returns an empty list when I called changelog.getChangeSets() , so what is wrong this code? static liquibase.changelog.DatabaseChangeLog changelog = new DatabaseChangeLog( "src/main/resources/changelog.xml"); Original post: My goal is to run database DDL commands with existing changelog in Java class. Currently my set up is like this: public class LiquibaseWithJavaCode { //find the location of the existing changelog.xml file static liquibase

best practice to expand a project at production with liquibase

喜夏-厌秋 提交于 2019-12-13 04:25:12
问题 I have a java ee project with an existing database. Now I expand my project local by using the liquibase-maven-plugin. The project create automatically a tag and makes an update . Are there any steps or preparations I have to take care of before deploying this project at the production? Local f.e. I played with the generateChangeLog command, which creates a xml-schema file of the existing database. Do I need this file for any purpose? Actually I just can set first of all a tag and then go on

unable to use liquibase standalone shell script

爷,独闯天下 提交于 2019-12-13 03:57:14
问题 (Sharing my own workaround via Q/A) I was getting the following error while trying to run liquibase as a standalone shell script, from the liquibase-3.6.2-bin.tar.gz release: Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/core/filter/Filter at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class

Liquibase:dropAll didn't delete schema

眉间皱痕 提交于 2019-12-13 03:38:12
问题 my software: Maven 3.0.4 Liquibase: 3.0.2 Postgresql: 9.1.9 JavaSE: 1.7.0_25 My problem: I create some schema with liquibase <changeSet id="create-customermgmt-schema" author="nl"> <sql>CREATE SCHEMA "customermgmt";</sql> </changeSet> If i try to exec liquibase:dropAll i get this: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building akufit.server 0.0.1-SNAPSHOT [INFO] --------------------------------------------

How to replace a xml tag with DTD entity

こ雲淡風輕ζ 提交于 2019-12-13 03:11:12
问题 I can replace a xml Attribute values using DTD Entity declaration using following methode //in DTD <!ENTITY varchar "VARCHAR(200)"> // In xml <column name="attachment_url" type="&varchar;"/> Now I want to replace a xml tag like <column name="attachment_url" type="VARCHAR(200)"/> using DTD Entity. I try like <!ENTITY full_coulumn "<column name="attachment_url" type="VARCHAR(200)"/>"> then i get an error Unexpected column with text: <column name="attachment_url" type="VARCHAR(200) "/> Is it

jhipster hot reload failed to register liquibase changelog directory

£可爱£侵袭症+ 提交于 2019-12-13 03:08:47
问题 i just started using jhipster and face a problem already, here's my development stack : - os windows 7 - eclipse Juno - maven 3.1 - latest node and npm - mysql as db in ubuntu vm and here's what i have done : - generate jhipster "yo jhipster" - convert it to maven project "mvn eclipse:eclipse" - maven compile "mvn clean" & "mvn install" - add jhipster-reload feature in eclipse run vm arguments - and run the main class in eclipse "right click Application.java and run as java application" -

Proper Mapping between Java LocalDateTime and db

不羁的心 提交于 2019-12-12 22:11:20
问题 I have a spring-boot 1.2.1 app, using Liquibase to manage my database. I also use Spring-data-jpa with hibernate. I have a table: <createTable tableName="ADDRESS"> <column name="address_id" type="bigint" autoIncrement="true"> <constraints primaryKey="true" nullable="false"/> </column> <column name="address_line1" type="varchar(500)"/> <column name="address_line2" type="varchar(500)"/> <column name="address_line3" type="varchar(500)"/> <column name="city" type="varchar(500)"/> <column name=

liquibase command line: Cannot find the declaration of element 'changeSet'

有些话、适合烂在心里 提交于 2019-12-12 15:32:22
问题 I'm trying to organize my changesets such that there is one changeset element per file, as implied by the Liquibase Best Practices, but I get the following error when i try to use the validate command on my liquidbase xml files. liquibase: cvc-elt.1: Cannot find the declaration of element 'changeSet'. liquibase: Error thrown as a SAXException: Error parsing line 3 column 38 of ./1.xml: cvc-elt.1: Cannot find the declaration of element 'changeSet'. What am I doing wrong? master.xml:

Maven - Spring - Liquibase includeAll not work

懵懂的女人 提交于 2019-12-12 14:32:00
问题 If you run liquibase in 3.5.1 through cmd everything it works correctly. If I run it through spring boot fits on includeAll, I tried to enter various ways nothing helped. Could not find directory or directory was empty for includeAll 'sequence/' Directory exist and not empty (files exist). 2016-07-26 08:29:21,949 [main] DEBUG s.t.e.c.c.DatabaseConfiguration - Configuring Liquibase 2016-07-26 08:29:23,707 [main] WARN o.e.j.u.c.AbstractLifeCycle - FAILED org.springframework.boot.context