From 35caa3e855e6a0aff9a3a1ab37f6e0eb5ea47e7b Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Fri, 1 Mar 2019 08:52:16 +0100
Subject: [PATCH] fix

---
 .../data_alias/basic/2019.2/changelog.xml           |  2 ++
 .../data_alias/basic/2019.2/removeTaskCode.xml      | 13 +++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 others/db_changes/data_alias/basic/2019.2/removeTaskCode.xml

diff --git a/others/db_changes/data_alias/basic/2019.2/changelog.xml b/others/db_changes/data_alias/basic/2019.2/changelog.xml
index c2994f22062..5961affe7d1 100644
--- a/others/db_changes/data_alias/basic/2019.2/changelog.xml
+++ b/others/db_changes/data_alias/basic/2019.2/changelog.xml
@@ -37,5 +37,7 @@
     <include relativeToChangelogFile="true" file="data/example_task/base.xml" context="example"/>
 	
     <include relativeToChangelogFile="true" file="update_TaskType_Task.xml"/>
+    <include relativeToChangelogFile="true" file="removeTaskCode.xml"/>
+    
     <include relativeToChangelogFile="true" file="create_salutation.xml"/>
 </databaseChangeLog>
diff --git a/others/db_changes/data_alias/basic/2019.2/removeTaskCode.xml b/others/db_changes/data_alias/basic/2019.2/removeTaskCode.xml
new file mode 100644
index 00000000000..77bb7e789f0
--- /dev/null
+++ b/others/db_changes/data_alias/basic/2019.2/removeTaskCode.xml
@@ -0,0 +1,13 @@
+<?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="598345d1-691b-4cae-b1c0-44c9c48705c8">
+    <dropNotNullConstraint tableName="TASK" columnName="CODE" />
+    <update tableName="TASK">
+        <column name="CODE"/>
+    </update>
+    <rollback>
+        <addNotNullConstraint tableName="TASK" columnName="CODE" />
+        <!--the update which sets everything to null cannot be rolled back-->
+    </rollback>
+</changeSet>
+</databaseChangeLog>
-- 
GitLab