Skip to content

Instantly share code, notes, and snippets.

@rschumm
Created February 10, 2014 09:28
Show Gist options
  • Save rschumm/8912881 to your computer and use it in GitHub Desktop.
Save rschumm/8912881 to your computer and use it in GitHub Desktop.
DB udpate mit liquibase
<?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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<include file="db/testdaten.sql" />
</databaseChangeLog>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<configuration>
<driver>org.h2.Driver</driver>
<url>${db.path}</url>
<username>root</username>
<password>1234</password>
<changeLogFile>db/changelog.xml</changeLogFile>
<dropFirst>false</dropFirst>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
<outputFileEncoding>UTF-8</outputFileEncoding>
</configuration>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>update</goal>
</goals>
</execution>
</executions>
</plugin>
create table remy
(
baureihe int
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment