Skip to content
Snippets Groups Projects
Commit e8db3968 authored by Tobias Feldmann's avatar Tobias Feldmann
Browse files

Demodaten mit Liquibase

parent 7be5aa98
No related branches found
No related tags found
No related merge requests found
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="t.feldmann" id="efc66d2-a20d-49e0-a24c-afab6095d1cb">
<insert tableName="ORG">
<column name="ORGID" value="328b8a8b-c053-447a-bc69-17965b6a60ae"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-06-13T09:03:43"/>
<column name="NAME" value="Gfk AG"/>
<column name="CUSTOMERCODE" value="00000001"/>
<column name="TYPE" valueNumeric="0"/>
</insert>
<insert tableName="RELATION">
<column name="RELATIONID" value="b219b58a-f120-42d8-9a64-0b176501eac7"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-06-13T09:03:43"/>
<column name="ORG_ID" value="328b8a8b-c053-447a-bc69-17965b6a60ae"/>
<column name="LANGUAGE" value="de-DE"/>
<column name="STATUS" valueNumeric="1"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="14a01219-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="b219b58a-f120-42d8-9a64-0b176501eac7"/>
<column name="MEDIUM_ID" valueNumeric="1"/>
<column name="ADDR" value="gfk@domain.local"/>
<column name="STANDARD" valueNumeric="1"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="22d07819-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="b219b58a-f120-42d8-9a64-0b176501eac7"/>
<column name="MEDIUM_ID" valueNumeric="2"/>
<column name="ADDR" value="098713332"/>
<column name="STANDARD" valueNumeric="0"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="00d07819-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="b219b58a-f120-42d8-9a64-0b176501eac7"/>
<column name="MEDIUM_ID" valueNumeric="3"/>
<column name="ADDR" value="www.gfk.de"/>
<column name="STANDARD" valueNumeric="0"/>
</insert>
<insert tableName="ADDRESS">
<column name="STATE" value="Bayern"/>
<column name="ADDR_TYPE" valueNumeric="2"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="CITY" value="München"/>
<column name="COUNTRY" value="DE"/>
<column name="RELATION_ID" value="b219b58a-f120-42d8-9a64-0b176501eac7"/>
<column name="USER_NEW" value="admin"/>
<column name="ADDRIDENTIFIER" value="Tor 1"/>
<column name="REGION" value=""/>
<column name="ADDRESSID" value="14d03432-985b-4efe-a634-da71ae482907"/>
<column name="BUILDINGNO" value="2"/>
<column name="ADDRESSADDITION"/>
<column name="ZIP" value="80807"/>
<column name="ADDRESS" value="Wilhelm-Straße"/>
<column name="DISTRICT" value="Oberbayern"/>
</insert>
<insert tableName="HISTORY">
<column name="HISTORYID" value="de410a35-bcab-407e-9d60-7a65f028159b"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-08-03T12:02:52"/>
<column name="SUBJECT" value="Produktpalette"/>
<column name="INFO" value="seit November neuer Einkäufer bei Schulz. Herr Traum wird unsere Spezifikation aber in jedem Fall auch 1997 festschreiben. Dennoch Vorsicht: Besuch"/>
<column name="MEDIUM" valueNumeric="2"/>
<column name="DIRECTION" value="i"/>
<column name="ENTRYDATE" valueDate="2018-08-03T12:41:22"/>
</insert>
<insert tableName="HISTORYLINK">
<column name="HISTORYLINKID" value="b435a1da-39f2-48ae-93a5-bad704e5ae48"/>
<column name="HISTORY_ID" value="de410a35-bcab-407e-9d60-7a65f028159b"/>
<column name="ROW_ID" value="b219b58a-f120-42d8-9a64-0b176501eac7"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-08-03T12:02:52"/>
<column name="OBJECT_ID" valueNumeric="1"/>
</insert>
<rollback>
<delete tableName="HISTORYLINK">
<where>HISTORYLINKID = ?</where>
<whereParams>
<param value="b435a1da-39f2-48ae-93a5-bad704e5ae48" />
</whereParams>
</delete>
<delete tableName="HISTORY">
<where>HISTORYID = ?</where>
<whereParams>
<param value="de410a35-bcab-407e-9d60-7a65f028159b" />
</whereParams>
</delete>
<delete tableName="ADDRESS">
<where>ADDRESSID = ?</where>
<whereParams>
<param value="14d03432-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="00d07819-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="22d07819-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="14a01219-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="RELATION">
<where>RELATIONID = ?</where>
<whereParams>
<param value="b219b58a-f120-42d8-9a64-0b176501eac7" />
</whereParams>
</delete>
<delete tableName="ORG">
<where>ORGID = ?</where>
<whereParams>
<param value="328b8a8b-c053-447a-bc69-17965b6a60ae" />
</whereParams>
</delete>
</rollback>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="t.feldmann" id="efc15d2-a20d-49e0-a24c-afab6095d1cb">
<insert tableName="ORG">
<column name="ORGID" value="0"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-06-13T09:03:43"/>
<column name="NAME" value="privat"/>
<column name="CUSTOMERCODE" value=""/>
<column name="TYPE" valueNumeric="0"/>
</insert>
<rollback>
<delete tableName="ORG">
<where>ORGID = ?</where>
<whereParams>
<param value="0" />
</whereParams>
</delete>
</rollback>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="t.feldmann" id="efc45d2-a40d-49e0-a24c-afab6095d1cb">
<insert tableName="PERS">
<column name="PERSID" value="efc45d11-a40d-59e0-a24c-afcb6095d2cb"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="DATEOFBIRTH" valueDate="1991-02-01"/>
<column name="USER_NEW" value="admin"/>
<column name="FIRSTNAME" value="Peter"/>
<column name="MIDDLENAME" value=""/>
<column name="LASTNAME" value="Pfiffig"/>
<column name="GENDER" value="m"/>
<column name="SALUTATION" value="Herr"/>
</insert>
<insert tableName="RELATION">
<column name="RELATIONID" value="a2e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="PERS_ID" value="efc45d11-a40d-59e0-a24c-afcb6095d2cb"/>
<column name="ORG_ID" value="0"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="STATUS" valueNumeric="1"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="14d01219-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="a2e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="MEDIUM_ID" valueNumeric="1"/>
<column name="ADDR" value="pfiffig@web.de"/>
<column name="STANDARD" valueNumeric="1"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="22d01219-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="a2e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="MEDIUM_ID" valueNumeric="2"/>
<column name="ADDR" value="08871333"/>
<column name="STANDARD" valueNumeric="0"/>
</insert>
<insert tableName="ADDRESS">
<column name="STATE" value="Bayern"/>
<column name="ADDR_TYPE" valueNumeric="2"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="CITY" value="Nürnberg"/>
<column name="COUNTRY" value="DE"/>
<column name="RELATION_ID" value="a2e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="USER_NEW" value="admin"/>
<column name="ADDRIDENTIFIER" value="Tor 1"/>
<column name="REGION" value="Mittelfranken"/>
<column name="ADDRESSID" value="14d01332-985b-4efe-a634-da71ae482907"/>
<column name="BUILDINGNO" value="25"/>
<column name="ADDRESSADDITION"/>
<column name="ZIP" value="90419"/>
<column name="ADDRESS" value="Laufertorgraben"/>
<column name="DISTRICT" value="Nürnberg"/>
</insert>
<insert tableName="HISTORY">
<column name="HISTORYID" value="de110a35-bcab-407e-9d60-7a65f028159b"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-08-03T12:02:52"/>
<column name="SUBJECT" value="Muster"/>
<column name="INFO" value="Spezifikation ausgefüllt und abgeschickt"/>
<column name="MEDIUM" valueNumeric="1"/>
<column name="DIRECTION" value="o"/>
<column name="ENTRYDATE" valueDate="2018-06-03T12:41:22"/>
</insert>
<insert tableName="HISTORYLINK">
<column name="HISTORYLINKID" value="b111a1da-39f2-48ae-93a5-bad704e5ae48"/>
<column name="HISTORY_ID" value="de110a35-bcab-407e-9d60-7a65f028159b"/>
<column name="ROW_ID" value="a2e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-06-03T14:02:52"/>
<column name="OBJECT_ID" valueNumeric="1"/>
</insert>
<rollback>
<delete tableName="HISTORYLINK">
<where>HISTORYLINKID = ?</where>
<whereParams>
<param value="b111a1da-39f2-48ae-93a5-bad704e5ae48" />
</whereParams>
</delete>
<delete tableName="HISTORY">
<where>HISTORYID = ?</where>
<whereParams>
<param value="de110a35-bcab-407e-9d60-7a65f028159b" />
</whereParams>
</delete>
<delete tableName="ADDRESS">
<where>ADDRESSID = ?</where>
<whereParams>
<param value="14d01332-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="22d01219-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="14d01219-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="RELATION">
<where>RELATIONID = ?</where>
<whereParams>
<param value="a2e084e2-d68a-4f1e-a1bb-f8d46ad6293d" />
</whereParams>
</delete>
<delete tableName="PERS">
<where>PERSID = ?</where>
<whereParams>
<param value="efc45d11-a40d-59e0-a24c-afcb6095d2cb" />
</whereParams>
</delete>
</rollback>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="t.feldmann" id="efc45d2-a40d-49e0-a24c-afab6095d1cb">
<insert tableName="PERS">
<column name="PERSID" value="ef345d11-a40d-59e0-a24c-afcb6095d2cb"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="DATEOFBIRTH" valueDate="1988-13-01"/>
<column name="USER_NEW" value="admin"/>
<column name="FIRSTNAME" value="Lisa"/>
<column name="MIDDLENAME" value=""/>
<column name="LASTNAME" value="Sommer"/>
<column name="GENDER" value="f"/>
<column name="SALUTATION" value="Frau"/>
</insert>
<insert tableName="RELATION">
<column name="RELATIONID" value="56e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="PERS_ID" value="ef345d11-a40d-59e0-a24c-afcb6095d2cb"/>
<column name="ORG_ID" value="328b8a8b-c053-447a-bc69-17965b6a60ae"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="STATUS" valueNumeric="1"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="14d05619-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="56e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="MEDIUM_ID" valueNumeric="1"/>
<column name="ADDR" value="sommer@gfk.de"/>
<column name="STANDARD" valueNumeric="1"/>
</insert>
<insert tableName="COMM">
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="USER_NEW" value="admin"/>
<column name="COMMID" value="58d01219-985b-4efe-a634-da71ae482907"/>
<column name="RELATION_ID" value="56e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="MEDIUM_ID" valueNumeric="2"/>
<column name="ADDR" value="087631333"/>
<column name="STANDARD" valueNumeric="0"/>
</insert>
<insert tableName="ADDRESS">
<column name="STATE" value="Bayern"/>
<column name="ADDR_TYPE" valueNumeric="2"/>
<column name="DATE_NEW" valueDate="2018-07-02T00:00:00"/>
<column name="CITY" value="Landshut"/>
<column name="COUNTRY" value="DE"/>
<column name="RELATION_ID" value="56e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="USER_NEW" value="admin"/>
<column name="ADDRIDENTIFIER" value=""/>
<column name="REGION" value="Niederbayern"/>
<column name="ADDRESSID" value="11d01332-985b-4efe-a634-da71ae482907"/>
<column name="BUILDINGNO" value="12"/>
<column name="ADDRESSADDITION"/>
<column name="ZIP" value="84034"/>
<column name="ADDRESS" value="Neustadt"/>
<column name="DISTRICT" value="Niederbayern"/>
</insert>
<insert tableName="HISTORY">
<column name="HISTORYID" value="aa110a35-bcab-407e-9d60-7a65f028159b"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-02-12T12:02:52"/>
<column name="SUBJECT" value="Angebot nachfassen"/>
<column name="INFO" value="Angebot nachfassen, wir liegen vor Wettbewerb"/>
<column name="MEDIUM" valueNumeric="1"/>
<column name="DIRECTION" value="o"/>
<column name="ENTRYDATE" valueDate="2018-06-03T12:41:22"/>
</insert>
<insert tableName="HISTORYLINK">
<column name="HISTORYLINKID" value="a331a1da-39f2-48ae-93a5-bad704e5ae48"/>
<column name="HISTORY_ID" value="aa110a35-bcab-407e-9d60-7a65f028159b"/>
<column name="ROW_ID" value="56e084e2-d68a-4f1e-a1bb-f8d46ad6293d"/>
<column name="USER_NEW" value="admin"/>
<column name="DATE_NEW" valueDate="2018-02-12T14:02:52"/>
<column name="OBJECT_ID" valueNumeric="1"/>
</insert>
<rollback>
<delete tableName="HISTORYLINK">
<where>HISTORYLINKID = ?</where>
<whereParams>
<param value="a331a1da-39f2-48ae-93a5-bad704e5ae48" />
</whereParams>
</delete>
<delete tableName="HISTORY">
<where>HISTORYID = ?</where>
<whereParams>
<param value="aa110a35-bcab-407e-9d60-7a65f028159b" />
</whereParams>
</delete>
<delete tableName="ADDRESS">
<where>ADDRESSID = ?</where>
<whereParams>
<param value="11d01332-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="58d01219-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="COMM">
<where>COMMID = ?</where>
<whereParams>
<param value="14d05619-985b-4efe-a634-da71ae482907" />
</whereParams>
</delete>
<delete tableName="RELATION">
<where>RELATIONID = ?</where>
<whereParams>
<param value="56e084e2-d68a-4f1e-a1bb-f8d46ad6293d" />
</whereParams>
</delete>
<delete tableName="PERS">
<where>PERSID = ?</where>
<whereParams>
<param value="ef345d11-a40d-59e0-a24c-afcb6095d2cb" />
</whereParams>
</delete>
</rollback>
</changeSet>
</databaseChangeLog>
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<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.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include file="struct/Create_Pers.xml"/>
<include file="data/PERS_data.xml"/>
<include file="struct/create_org.xml"/>
<include file="data/example_org.xml"/>
<include file="struct/create_history.xml"/>
<include file="struct/1022526_orgChange.xml"/>
<include file="struct/create_historylink.xml"/>
<include file="data/example_history/example_history.xml"/>
<include file="struct/relationChangePERSID.xml"/>
<include file="data/PERS_extendeddata.xml"/>
<include file="data/example_history/extendHLink_62330df6.xml"/>
<include file="struct/create_address.xml"/>
<include file="struct/create_comm.xml"/>
<include file="struct/create_comm.xml"/>
<include file="misc/1535533490181_persChanges.xml"/>
<include file="data/1535552056314_relationLangChanges.xml"/>
<include file="data/example_org/ORG_privat.xml"/>
<include file="data/example_org/ORG_gfk.xml"/>
<include file="data/example_pers/PERS_pfiffig.xml"/>
<include file="data/example_pers/PERS_sommer.xml"/>
</databaseChangeLog>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment