From 28ec6136527b13a71d759067cda58f9477784e92 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Mon, 3 Dec 2018 11:13:39 +0100
Subject: [PATCH] refactor liquibase

---
 aliasDefinition/Data_alias/Data_alias.aod     | 10 ++---
 others/db_changes/data/PERS_data.xml          |  2 +-
 others/db_changes/masterChangelog.xml         |  9 +----
 .../misc/1535533490181_persChanges.xml        | 37 -------------------
 .../db_changes/struct/1022526_orgChange.xml   | 12 ------
 .../struct/1535612802325_addressChange.xml    | 22 -----------
 .../db_changes/struct/changeLanguageType.xml  |  7 ----
 others/db_changes/struct/create_address.xml   |  2 +-
 others/db_changes/struct/create_contract.xml  |  4 +-
 others/db_changes/struct/create_offer.xml     |  4 +-
 others/db_changes/struct/create_org.xml       | 21 +----------
 others/db_changes/struct/create_pers.xml      |  2 +-
 others/db_changes/struct/create_product.xml   |  4 +-
 others/db_changes/struct/create_relation.xml  | 24 ++++++++++++
 others/db_changes/struct/offerChanges.xml     |  9 -----
 others/db_changes/struct/offerChangesText.xml | 11 ------
 others/db_changes/struct/productChanges.xml   |  9 -----
 .../struct/relationChangePERSID.xml           |  8 ----
 18 files changed, 44 insertions(+), 153 deletions(-)
 delete mode 100644 others/db_changes/misc/1535533490181_persChanges.xml
 delete mode 100644 others/db_changes/struct/1022526_orgChange.xml
 delete mode 100644 others/db_changes/struct/1535612802325_addressChange.xml
 delete mode 100644 others/db_changes/struct/changeLanguageType.xml
 create mode 100644 others/db_changes/struct/create_relation.xml
 delete mode 100644 others/db_changes/struct/offerChanges.xml
 delete mode 100644 others/db_changes/struct/offerChangesText.xml
 delete mode 100644 others/db_changes/struct/productChanges.xml
 delete mode 100644 others/db_changes/struct/relationChangePERSID.xml

diff --git a/aliasDefinition/Data_alias/Data_alias.aod b/aliasDefinition/Data_alias/Data_alias.aod
index 32b784454e..5cdff70f6c 100644
--- a/aliasDefinition/Data_alias/Data_alias.aod
+++ b/aliasDefinition/Data_alias/Data_alias.aod
@@ -1278,8 +1278,8 @@
                 <columnType v="12" />
                 <size v="30" />
                 <scale v="0" />
-                <notNull v="false" />
-                <isUnique v="false" />
+                <notNull v="true" />
+                <isUnique v="true" />
                 <index v="true" />
                 <title></title>
                 <description></description>
@@ -1479,8 +1479,8 @@
                 <columnType v="12" />
                 <size v="50" />
                 <scale v="0" />
-                <notNull v="false" />
-                <isUnique v="false" />
+                <notNull v="true" />
+                <isUnique v="true" />
                 <index v="true" />
                 <title></title>
                 <description></description>
@@ -2165,7 +2165,7 @@
                 <name>LANGUAGE</name>
                 <dbName></dbName>
                 <primaryKey v="false" />
-                <columnType v="12" />
+                <columnType v="1" />
                 <size v="5" />
                 <scale v="0" />
                 <notNull v="false" />
diff --git a/others/db_changes/data/PERS_data.xml b/others/db_changes/data/PERS_data.xml
index 14b325362d..75d901d635 100644
--- a/others/db_changes/data/PERS_data.xml
+++ b/others/db_changes/data/PERS_data.xml
@@ -9,7 +9,7 @@
 		<column name="FIRSTNAME" value="Heribert"/>
 		<column name="MIDDLENAME" value="Anton"/>
 		<column name="LASTNAME" value="Untermeier"/>
-		<column name="GENDER" value="männlich"/>
+		<column name="GENDER" value="m"/>
 		<column name="SALUTATION" value="Herr"/>
 	</insert>
         <rollback>
diff --git a/others/db_changes/masterChangelog.xml b/others/db_changes/masterChangelog.xml
index 1231532373..9f519cdc9d 100644
--- a/others/db_changes/masterChangelog.xml
+++ b/others/db_changes/masterChangelog.xml
@@ -2,10 +2,9 @@
 <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="struct/create_org.xml"/>
+    <include file="struct/create_relation.xml"/>    
     <include file="struct/create_history.xml"/>
-    <include file="struct/1022526_orgChange.xml"/>
     <include file="struct/create_historylink.xml"/>
-    <include file="struct/relationChangePERSID.xml"/>
     <include file="struct/create_address.xml"/>
     <include file="struct/create_comm.xml"/>
     <include file="struct/create_contract.xml"/>
@@ -22,12 +21,6 @@
     <include file="struct/create_salesproject_source.xml"/>
     <include file="struct/create_offer.xml"/>
     <include file="struct/create_offeritem.xml"/>
-    <include file="struct/contractChanges.xml"/>
-    <include file="struct/offerChanges.xml"/>
-    <include file="struct/productChanges.xml"/>
-    <include file="struct/offerChangesText.xml"/>
-    <include file="misc/1535533490181_persChanges.xml"/>
-    <include file="struct/1535612802325_addressChange.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"/>
diff --git a/others/db_changes/misc/1535533490181_persChanges.xml b/others/db_changes/misc/1535533490181_persChanges.xml
deleted file mode 100644
index e782af8a4e..0000000000
--- a/others/db_changes/misc/1535533490181_persChanges.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?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="j.goderbauer" id="e4b9e747-d734-441b-9bbd-ee3794c50636">
-        <addColumn tableName="PERS">
-            <column name="GENDER_e4b9e747" type="CHAR(1)"/>
-        </addColumn>
-        <update tableName="PERS">
-            <column name="GENDER_e4b9e747" value="m" />
-            <where>GENDER = ?</where>
-            <whereParams>
-                <param value="männlich"/>
-            </whereParams>
-        </update>
-        <dropColumn tableName="PERS">
-            <column name="GENDER" />
-        </dropColumn>
-        <renameColumn tableName="PERS" oldColumnName="GENDER_e4b9e747" newColumnName="GENDER" columnDataType="CHAR(1)" />
-        <rollback>
-            <addColumn tableName="PERS">
-                <column name="GENDER_e4b9e747" type="VARCHAR(50)"/>
-            </addColumn>
-            <update tableName="PERS">
-                <column name="GENDER_e4b9e747" value="männlich" />
-                <where>GENDER = ?</where>
-                <whereParams>
-                    <param value="m"/>
-                </whereParams>
-            </update>
-            <dropColumn tableName="PERS">
-                <column name="GENDER" />
-            </dropColumn>
-            <renameColumn tableName="PERS" oldColumnName="GENDER_e4b9e747" newColumnName="GENDER" columnDataType="VARCHAR(50)" />
-        </rollback>
-    </changeSet>
-</databaseChangeLog>
diff --git a/others/db_changes/struct/1022526_orgChange.xml b/others/db_changes/struct/1022526_orgChange.xml
deleted file mode 100644
index 2b086e4d98..0000000000
--- a/others/db_changes/struct/1022526_orgChange.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?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="j.goderbauer" id="69397d83-4112-4a1d-bc2d-7299da2b297c">
-        <modifyDataType tableName="ORG" columnName="CUSTOMERCODE" newDataType="NVARCHAR(30)"></modifyDataType>
-        <addColumn tableName="ORG">
-            <column name="SALESAREA" type="SMALLINT"></column>
-        </addColumn>
-        <rollback>
-            <modifyDataType tableName="ORG" columnName="CUSTOMERCODE" newDataType="VARCHAR(30)"></modifyDataType>
-        </rollback>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/1535612802325_addressChange.xml b/others/db_changes/struct/1535612802325_addressChange.xml
deleted file mode 100644
index 0dcbe9724c..0000000000
--- a/others/db_changes/struct/1535612802325_addressChange.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?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="j.goderbauer" id="f3d4fe9a-1dff-48c7-8c30-e06c1273bdda">
-        <addColumn tableName="ADDRESS">
-            <column name="ADDR_TYPE_e007e4c0" type="SMALLINT"/>
-        </addColumn>
-        <dropColumn tableName="ADDRESS">
-            <column name="ADDR_TYPE" />
-        </dropColumn>
-        <renameColumn tableName="ADDRESS" oldColumnName="ADDR_TYPE_e007e4c0" newColumnName="ADDR_TYPE" columnDataType="SMALLINT"/>
-    
-        <rollback>
-            <addColumn tableName="ADDRESS">
-                <column name="ADDR_TYPE_e007e4c0" type="INTEGER"/>
-            </addColumn>
-            <dropColumn tableName="ADDRESS">
-                <column name="ADDR_TYPE" />
-            </dropColumn>
-            <renameColumn tableName="ADDRESS" oldColumnName="ADDR_TYPE_e007e4c0" newColumnName="ADDR_TYPE" columnDataType="INTEGER"/>
-        </rollback>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/changeLanguageType.xml b/others/db_changes/struct/changeLanguageType.xml
deleted file mode 100644
index 77aeb44c5d..0000000000
--- a/others/db_changes/struct/changeLanguageType.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?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="m.schroeger" id="609a8e0d-d104-4cdb-a803-3ac65bb456b3">
-    <modifyDataType tableName="OFFER" columnName="LANGUAGE" newDataType="varchar(5)"/>
-    <modifyDataType tableName="RELATION" columnName="LANGUAGE" newDataType="varchar(5)"/>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/create_address.xml b/others/db_changes/struct/create_address.xml
index ff468cc0b2..3444b2f8c9 100644
--- a/others/db_changes/struct/create_address.xml
+++ b/others/db_changes/struct/create_address.xml
@@ -9,7 +9,7 @@
                 <column name="DATE_NEW" type="TIMESTAMP">
                     <constraints nullable="false"/>
                 </column>
-		<column name="ADDR_TYPE" type="INTEGER"/>
+		<column name="ADDR_TYPE" type="SMALLINT"/>
 		<column name="USER_EDIT" type="VARCHAR(50)"/>
                 <column name="USER_NEW" type="VARCHAR(50)">
                     <constraints nullable="false"/>
diff --git a/others/db_changes/struct/create_contract.xml b/others/db_changes/struct/create_contract.xml
index b8ca05c8e6..888d5dad7b 100644
--- a/others/db_changes/struct/create_contract.xml
+++ b/others/db_changes/struct/create_contract.xml
@@ -2,7 +2,9 @@
 <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="m.schroeger" id="fdf350de-cff9-4be1-bcbe-61ec9a46c9f0">
         <createTable tableName="CONTRACT">
-            <column name="CONTRACTCODE" type="VARCHAR(30)"/>
+            <column name="CONTRACTCODE" type="VARCHAR(30)">
+                <constraints  nullable="false" unique="true" uniqueConstraintName="UNIQUE_CONTRACT_CONTRACTCODE"/>
+            </column>
             <column name="CONTRACTDUE" type="TIMESTAMP"/>
             <column name="CONTRACTEND" type="TIMESTAMP"/>
             <column name="CONTRACTSTART" type="TIMESTAMP"/>
diff --git a/others/db_changes/struct/create_offer.xml b/others/db_changes/struct/create_offer.xml
index 4e3e610d85..ff23a37af8 100644
--- a/others/db_changes/struct/create_offer.xml
+++ b/others/db_changes/struct/create_offer.xml
@@ -12,8 +12,10 @@
 		<column name="OFFER_ID" type="CHAR(36)">
 			<constraints foreignKeyName="FK_OFFER_OFFER_ID" references="OFFER(OFFERID)"/>
 		</column>
+                <column name="HEADER" type="NCLOB"/>
+                <column name="FOOTER" type="NCLOB"/>
                 <column name="OFFERDATE" type="TIMESTAMP"/>
-                <column name="LANGUAGE" type="INTEGER"/>
+                <column name="LANGUAGE" type="CHAR(5)"/>
                 <column name="OFFERCODE" type="INTEGER"/>
                 <column name="VERSNR" type="INTEGER"/>
                 <column name="STATUS" type="INTEGER"/>
diff --git a/others/db_changes/struct/create_org.xml b/others/db_changes/struct/create_org.xml
index a7fae3e18c..407d1b358e 100644
--- a/others/db_changes/struct/create_org.xml
+++ b/others/db_changes/struct/create_org.xml
@@ -7,7 +7,7 @@
             </column>
             <column name="INFO" type="NCLOB"/>
             <column name="TYPE" type="SMALLINT"/>
-            <column name="CUSTOMERCODE" type="VARCHAR(30)"/>
+            <column name="CUSTOMERCODE" type="NVARCHAR(30)"/>
             <column name="ORGID" type="CHAR(36)">
                 <constraints primaryKey="true" primaryKeyName="PK_ORG_ORGID"/>
             </column>
@@ -19,24 +19,7 @@
                 <constraints nullable="false"/>
             </column>
             <column name="DATE_EDIT" type="TIMESTAMP"/>
-        </createTable>
-        <createTable tableName="RELATION">
-            <column name="STATUS" type="SMALLINT"/>
-            <column name="LANGUAGE" type="CHAR(5)"/>
-            <column name="ORG_ID" type="CHAR(36)">
-                <constraints nullable="false" foreignKeyName="FK_RELATION_ORG_ID" references="ORG(ORGID)"/>
-            </column>
-            <column name="RELATIONID" type="CHAR(36)">
-                <constraints primaryKey="true" primaryKeyName="PK_RELATION_RELATIONID"/>
-            </column>
-            <column name="USER_NEW" type="VARCHAR(50)">
-                <constraints nullable="false"/>
-            </column>
-            <column name="USER_EDIT" type="VARCHAR(50)"/>
-            <column name="DATE_NEW" type="TIMESTAMP">
-                <constraints nullable="false"/>
-            </column>
-            <column name="DATE_EDIT" type="TIMESTAMP"/>
+            <column name="SALESAREA" type="SMALLINT"></column>
         </createTable>
     </changeSet>
 </databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/create_pers.xml b/others/db_changes/struct/create_pers.xml
index 8fdd0ff9eb..4ee0fc967d 100644
--- a/others/db_changes/struct/create_pers.xml
+++ b/others/db_changes/struct/create_pers.xml
@@ -15,7 +15,7 @@
 		<column name="LASTNAME" type="VARCHAR(50)">
                     <constraints nullable="false"/>
                 </column>
-		<column name="GENDER" type="VARCHAR(50)"/>
+                <column name="GENDER" type="CHAR(1)"/>
 		<column name="SALUTATION" type="VARCHAR(16)"/>
 		<column name="TITLE" type="VARCHAR(50)"/>
 		<column name="TITLESUFFIX" type="VARCHAR(50)"/>
diff --git a/others/db_changes/struct/create_product.xml b/others/db_changes/struct/create_product.xml
index 1db1f002e7..685984f4d1 100644
--- a/others/db_changes/struct/create_product.xml
+++ b/others/db_changes/struct/create_product.xml
@@ -9,7 +9,9 @@
 		<column name="GROUPCODEID" type="INTEGER"/>
 		<column name="MINSTOCK" type="NUMERIC(14,2)"/>
 		<column name="ORG_ID" type="CHAR(36)"/>
-		<column name="PRODUCTCODE" type="VARCHAR(50)"/>
+		<column name="PRODUCTCODE" type="VARCHAR(50)">
+                    <constraints  nullable="false" unique="true" uniqueConstraintName="UNIQUE_PRODUCT_PRODUCTCODE"/>
+                </column>
 		<column name="PRODUCTNAME" type="VARCHAR(50)"/>
 		<column name="STATUS" type="INTEGER"/>
 		<column name="UNIT" type="INTEGER"/>
diff --git a/others/db_changes/struct/create_relation.xml b/others/db_changes/struct/create_relation.xml
new file mode 100644
index 0000000000..6b150873f7
--- /dev/null
+++ b/others/db_changes/struct/create_relation.xml
@@ -0,0 +1,24 @@
+<?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="j.hoermann" id="1f8bb402-3dd8-4732-8409-0ffc784f84f4">
+        <createTable tableName="RELATION">
+            <column name="STATUS" type="SMALLINT"/>
+            <column name="LANGUAGE" type="CHAR(5)"/>
+            <column name="ORG_ID" type="CHAR(36)">
+                <constraints nullable="false" foreignKeyName="FK_RELATION_ORG_ID" references="ORG(ORGID)"/>
+            </column>
+            <column name="PERS_ID" type="CHAR(36)" />
+            <column name="RELATIONID" type="CHAR(36)">
+                <constraints primaryKey="true" primaryKeyName="PK_RELATION_RELATIONID"/>
+            </column>
+            <column name="USER_NEW" type="VARCHAR(50)">
+                <constraints nullable="false"/>
+            </column>
+            <column name="USER_EDIT" type="VARCHAR(50)"/>
+            <column name="DATE_NEW" type="TIMESTAMP">
+                <constraints nullable="false"/>
+            </column>
+            <column name="DATE_EDIT" type="TIMESTAMP"/>
+        </createTable>
+    </changeSet>
+</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/offerChanges.xml b/others/db_changes/struct/offerChanges.xml
deleted file mode 100644
index 37adab85f1..0000000000
--- a/others/db_changes/struct/offerChanges.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?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="m.schroeger" id="27bc9279-0794-436c-9b54-dda05c3c310e">
-        <dropColumn tableName="OFFER" columnName="LANGUAGE"/>
-        <addColumn tableName="OFFER">
-            <column name="LANGUAGE" type="varchar(5)"/>
-        </addColumn>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/offerChangesText.xml b/others/db_changes/struct/offerChangesText.xml
deleted file mode 100644
index 48bd619663..0000000000
--- a/others/db_changes/struct/offerChangesText.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?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="m.schroeger" id="af4fdc63-1563-424d-b604-6342dc486842">
-        <addColumn tableName="OFFER">
-            <column name="HEADER" type="CLOB"/>
-        </addColumn>
-        <addColumn tableName="OFFER">
-            <column name="FOOTER" type="CLOB"/>
-        </addColumn>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/productChanges.xml b/others/db_changes/struct/productChanges.xml
deleted file mode 100644
index 1c5f418ec6..0000000000
--- a/others/db_changes/struct/productChanges.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?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="m.schroeger" id="9d7715ea-da67-4579-b591-ab4cd871e320">
-        <addUniqueConstraint tableName="PRODUCT" columnNames="PRODUCTCODE" constraintName="unique_PRODUCT_PRODUCTCODE"/>
-        <rollback>
-            <dropUniqueConstraint tableName="PRODUCT" constraintName="unique_PRODUCT_PRODUCTCODE"/>
-        </rollback>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
diff --git a/others/db_changes/struct/relationChangePERSID.xml b/others/db_changes/struct/relationChangePERSID.xml
deleted file mode 100644
index 94eed45591..0000000000
--- a/others/db_changes/struct/relationChangePERSID.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?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="j.goderbauer" id="10429d7f-f1e9-4b26-a4ac-c232efd360c7">
-        <addColumn tableName="RELATION">
-			<column name="PERS_ID" type="CHAR(36)" />
-		</addColumn>
-    </changeSet>
-</databaseChangeLog>
\ No newline at end of file
-- 
GitLab