From 7e08745f2b928e4300b7b535643b72e5512344b5 Mon Sep 17 00:00:00 2001
From: "a.schindlbeck" <a.schindlbeck@adito.de>
Date: Thu, 11 Apr 2019 10:50:54 +0200
Subject: [PATCH] =?UTF-8?q?Liquibase=20Systemalias=20update=20f=C3=BCr=20N?=
 =?UTF-8?q?otification-Tables?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../basic/2019.2/changelog.xml                |  5 ++++
 .../create_asys_notificationcontents.xml      | 22 +++++++++++++++
 .../2019.2/create_asys_notifications.xml      | 17 +++++++++++
 .../_____SYSTEMALIAS/basic/init/init.xml      | 28 +++++++++----------
 .../create_asys_notificationcontents.xml      |  0
 .liquibase/_____SYSTEMALIAS/changelog.xml     |  1 +
 .../_____SYSTEMALIAS/basic/init/init.xml      |  0
 .../init/struct/create_asys_notifications.xml |  0
 .../_____PREFERENCES_PROJECT.aod              |  2 +-
 9 files changed, 60 insertions(+), 15 deletions(-)
 create mode 100644 .liquibase/_____SYSTEMALIAS/basic/2019.2/changelog.xml
 create mode 100644 .liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notificationcontents.xml
 create mode 100644 .liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notifications.xml
 rename {others/db_changes => .liquibase}/_____SYSTEMALIAS/basic/init/struct/create_asys_notificationcontents.xml (100%)
 delete mode 100644 others/db_changes/_____SYSTEMALIAS/basic/init/init.xml
 delete mode 100644 others/db_changes/_____SYSTEMALIAS/basic/init/struct/create_asys_notifications.xml

diff --git a/.liquibase/_____SYSTEMALIAS/basic/2019.2/changelog.xml b/.liquibase/_____SYSTEMALIAS/basic/2019.2/changelog.xml
new file mode 100644
index 00000000000..d389926043b
--- /dev/null
+++ b/.liquibase/_____SYSTEMALIAS/basic/2019.2/changelog.xml
@@ -0,0 +1,5 @@
+<?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 relativeToChangelogFile="true" file="create_asys_notifications.xml"/>
+    <include relativeToChangelogFile="true" file="create_asys_notificationcontents.xml"/>
+</databaseChangeLog>
diff --git a/.liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notificationcontents.xml b/.liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notificationcontents.xml
new file mode 100644
index 00000000000..46596fa82a5
--- /dev/null
+++ b/.liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notificationcontents.xml
@@ -0,0 +1,22 @@
+<?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="a.schindlbeck" id="6b25f062-fb39-4230-9348-b67ec5ec45a1">
+    <createTable tableName="ASYS_NOTIFICATIONCONTENTS">
+        <column name="CONTENTID" type="CHAR(36)">
+            <constraints primaryKey="true" primaryKeyName="PK_ASYS_NOTIFICATIONCONTENTS_CONTENTID"/>
+        </column>
+        <column name="BACKPACK" type="CLOB"/>
+        <column name="CAPTION" type="VARCHAR(512)"/>
+        <column name="CREATIONDATE" type="BIGINT"/>
+        <column name="DESCRIPTION" type="VARCHAR(1023)"/>
+        <column name="FORCEDPRIORITY" type="INTEGER"/>
+        <column name="ICON_INFO" type="VARCHAR(1023)"/>
+        <column name="LIFETIME" type="BIGINT"/>
+        <column name="LINK_INFO" type="VARCHAR(1023)"/>
+        <column name="ORIGINATORNAME" type="VARCHAR(63)"/>
+        <column name="RECIPIENTUSERIDS" type="CLOB"/>
+        <column name="TYPECODE" type="VARCHAR(63)"/>
+        <column name="VERSION" type="INTEGER"/>
+    </createTable>
+</changeSet>
+</databaseChangeLog>
\ No newline at end of file
diff --git a/.liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notifications.xml b/.liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notifications.xml
new file mode 100644
index 00000000000..b307e0e89f5
--- /dev/null
+++ b/.liquibase/_____SYSTEMALIAS/basic/2019.2/create_asys_notifications.xml
@@ -0,0 +1,17 @@
+<?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="a.schindlbeck" id="98f057b6-0140-4edd-b08d-9cc7cf178bab">
+    <!---
+	its ok to drop the old ASYS_NOTIFICATIONS due to new version
+    -->
+    <dropTable tableName="ASYS_NOTIFICATIONS"/>
+    <createTable tableName="ASYS_NOTIFICATIONS">
+        <column name="ID" type="CHAR(36)">
+            <constraints primaryKey="true" primaryKeyName="PK_ASYS_NOTIFICATIONS_ID"/>
+        </column>
+        <column name="CONTENTID" type="VARCHAR(512)"/>
+        <column name="STATE" type="VARCHAR(16)"/>
+        <column name="USERID" type="VARCHAR(63)"/>
+    </createTable>
+</changeSet>
+</databaseChangeLog>
diff --git a/.liquibase/_____SYSTEMALIAS/basic/init/init.xml b/.liquibase/_____SYSTEMALIAS/basic/init/init.xml
index 4e94f254387..d29b9203a5b 100644
--- a/.liquibase/_____SYSTEMALIAS/basic/init/init.xml
+++ b/.liquibase/_____SYSTEMALIAS/basic/init/init.xml
@@ -1,18 +1,18 @@
 <?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_asys_aliasconfig.xml"/>
-    <include file="struct/create_asys_binaries.xml"/>
-    <include file="struct/create_asys_dashletconfigurations.xml"/>
-    <include file="struct/create_asys_dashlets.xml"/>
-    <include file="struct/create_asys_notifications.xml"/>
-    <include file="struct/create_asys_sequences.xml"/>
-    <include file="struct/create_asys_system.xml"/>
-    <include file="struct/create_asys_timer.xml"/>
-    <include file="struct/create_asys_users.xml"/>
-    <include file="struct/create_asys_calendarbackend.xml"/>
-    <include file="struct/create_asys_calendarlink.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_aliasconfig.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_binaries.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_dashletconfigurations.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_dashlets.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_notifications.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_sequences.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_system.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_timer.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_users.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_calendarbackend.xml"/>
+    <include relativeToChangelogFile="true" file="struct/create_asys_calendarlink.xml"/>
     
-    <include file="data/insert_asys_aliasconfig.xml"/>
-    <include file="data/insert_asys_system.xml"/>
-    <include file="data/insert_asys_users-admin.xml"/>
+    <include relativeToChangelogFile="true" file="data/insert_asys_aliasconfig.xml"/>
+    <include relativeToChangelogFile="true" file="data/insert_asys_system.xml"/>
+    <include relativeToChangelogFile="true" file="data/insert_asys_users-admin.xml"/>
 </databaseChangeLog>
diff --git a/others/db_changes/_____SYSTEMALIAS/basic/init/struct/create_asys_notificationcontents.xml b/.liquibase/_____SYSTEMALIAS/basic/init/struct/create_asys_notificationcontents.xml
similarity index 100%
rename from others/db_changes/_____SYSTEMALIAS/basic/init/struct/create_asys_notificationcontents.xml
rename to .liquibase/_____SYSTEMALIAS/basic/init/struct/create_asys_notificationcontents.xml
diff --git a/.liquibase/_____SYSTEMALIAS/changelog.xml b/.liquibase/_____SYSTEMALIAS/changelog.xml
index 5fea0f98a12..0754d5e05ad 100644
--- a/.liquibase/_____SYSTEMALIAS/changelog.xml
+++ b/.liquibase/_____SYSTEMALIAS/changelog.xml
@@ -1,4 +1,5 @@
 <?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="basic/init/init.xml"/>
+    <include file="basic/2019.2/changelog.xml"/>
 </databaseChangeLog>
diff --git a/others/db_changes/_____SYSTEMALIAS/basic/init/init.xml b/others/db_changes/_____SYSTEMALIAS/basic/init/init.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/others/db_changes/_____SYSTEMALIAS/basic/init/struct/create_asys_notifications.xml b/others/db_changes/_____SYSTEMALIAS/basic/init/struct/create_asys_notifications.xml
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod b/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod
index 35430f5089f..2e627c2e517 100644
--- a/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod
+++ b/preferences/_____PREFERENCES_PROJECT/_____PREFERENCES_PROJECT.aod
@@ -2,7 +2,7 @@
 <preferences xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="3.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/preferences/3.1.0">
   <name>_____PREFERENCES_PROJECT</name>
   <majorModelMode>DISTRIBUTED</majorModelMode>
-  <projectName>xRM-Basic5</projectName>
+  <projectName>xRM-Basic2019</projectName>
   <jditoMaxContentSize v="57671680" />
   <calendarCategoriesEvent>
     <entry>
-- 
GitLab