From 1e8f3e2c6adf98c1a151f76fce3e88fb82be2239 Mon Sep 17 00:00:00 2001
From: Markus Schloder <m.schloder@adito.de>
Date: Thu, 6 May 2021 15:08:39 +0000
Subject: [PATCH] 1078478 asys audit liquibase

---
 .../_____SYSTEMALIAS/basic/init/init.xml      |  5 ++++-
 .../basic/init/struct/create_asys_audit.xml   | 21 +++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 .liquibase/_____SYSTEMALIAS/basic/init/struct/create_asys_audit.xml

diff --git a/.liquibase/_____SYSTEMALIAS/basic/init/init.xml b/.liquibase/_____SYSTEMALIAS/basic/init/init.xml
index 540e5ac0773..a3ef4613451 100644
--- a/.liquibase/_____SYSTEMALIAS/basic/init/init.xml
+++ b/.liquibase/_____SYSTEMALIAS/basic/init/init.xml
@@ -1,5 +1,7 @@
 <?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="struct/create_asys_audit.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"/>
@@ -29,5 +31,6 @@
     <include relativeToChangelogFile="true" file="data/insert_asys_system.xml"/>
     <include relativeToChangelogFile="true" file="data/insert_asys_permissionset.xml"/>
     <include relativeToChangelogFile="true" file="data/insert_asys_permission.xml"/>
-    <include relativeToChangelogFile="true" file="data/insert_asys_permissionaction.xml"/>
+    <include relativeToChangelogFile="true" file="data/insert_asys_permissionaction.xml"/> 
+   
 </databaseChangeLog>
diff --git a/.liquibase/_____SYSTEMALIAS/basic/init/struct/create_asys_audit.xml b/.liquibase/_____SYSTEMALIAS/basic/init/struct/create_asys_audit.xml
new file mode 100644
index 00000000000..925f1cc139a
--- /dev/null
+++ b/.liquibase/_____SYSTEMALIAS/basic/init/struct/create_asys_audit.xml
@@ -0,0 +1,21 @@
+<?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.schloder" id="Xcb1ff99-55bd-4ebc-8137-ec05b4cacbd7">
+    <createTable tableName="ASYS_AUDIT">
+        <column name="ACOLUMNNAME" type="VARCHAR(217)"/>
+		<column name="ALIAS" type="VARCHAR(255)"/>
+		<column name="ATABLENAME" type="VARCHAR(127)"/>
+		<column name="ATIMESTAMP" type="DATETIME"/>
+		<column name="AUSER" type="VARCHAR(255)"/>
+		<column name="DATASETID" type="VARCHAR(1023)"/>
+		<column name="DATASETNEWVALUE_BLOB" type="LONGBLOB"/>
+		<column name="DATASETNEWVALUE_CLOB" type="TEXT"/>
+		<column name="DATASETNEWVALUE_STRING" type="VARCHAR(1023)"/>
+		<column defaultValueComputed="CURRENT_TIMESTAMP" name="LOGTIME" type="TIMESTAMP" />
+		<column name="LOGTYPE" type="INT"/>
+		<column name="LOGWRITERUID" type="VARCHAR(127)"/>
+		<column name="SQLACTION" type="CHAR(1)"/>  
+    </createTable>
+     
+    </changeSet>
+</databaseChangeLog>
\ No newline at end of file
-- 
GitLab