From 2e8106d1e6a381e188dd15f5b0a493f2dd1cc079 Mon Sep 17 00:00:00 2001 From: "b.ulrich" <b.ulrich@adito.de> Date: Mon, 21 Sep 2020 11:24:11 +0200 Subject: [PATCH] [Projekt: Entwicklung - Neon][TicketNr.: 1063549][Commrestriction Liquibase Spaltentyp] --- .../alter_CommrestrictionsEmployeeInvolved.xml | 17 +++++++++++++++++ .../Data_alias/basic/2020.2.0/changelog.xml | 1 + 2 files changed, 18 insertions(+) create mode 100644 .liquibase/Data_alias/basic/2020.2.0/alter_CommrestrictionsEmployeeInvolved.xml diff --git a/.liquibase/Data_alias/basic/2020.2.0/alter_CommrestrictionsEmployeeInvolved.xml b/.liquibase/Data_alias/basic/2020.2.0/alter_CommrestrictionsEmployeeInvolved.xml new file mode 100644 index 00000000000..487e3f6392b --- /dev/null +++ b/.liquibase/Data_alias/basic/2020.2.0/alter_CommrestrictionsEmployeeInvolved.xml @@ -0,0 +1,17 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> + <changeSet dbms="derby" author="b.ulrich" id="c56df7ca-aa5c-426b-bdb7-16f8ad16d17c"> + <sql> + ALTER TABLE COMMRESTRICTION ADD COLUMN EMPLOYEE_INVOLVED_NEW CHAR(36); + UPDATE COMMRESTRICTION SET EMPLOYEE_INVOLVED_NEW=EMPLOYEE_INVOLVED; + ALTER TABLE COMMRESTRICTION DROP COLUMN EMPLOYEE_INVOLVED; + RENAME COLUMN COMMRESTRICTION.EMPLOYEE_INVOLVED_NEW TO EMPLOYEE_INVOLVED; + </sql> + </changeSet> + + <changeSet dbms="!derby" author="b.ulrich" id="17c1eb73-3131-4a2b-bf9a-913590767c79"> + <modifyDataType tableName="COMMRESTRICTION" columnName="EMPLOYEE_INVOLVED" newDataType="CHAR(36)"/> + </changeSet> + +</databaseChangeLog> diff --git a/.liquibase/Data_alias/basic/2020.2.0/changelog.xml b/.liquibase/Data_alias/basic/2020.2.0/changelog.xml index 2979f8b183b..620de869917 100644 --- a/.liquibase/Data_alias/basic/2020.2.0/changelog.xml +++ b/.liquibase/Data_alias/basic/2020.2.0/changelog.xml @@ -12,4 +12,5 @@ <include relativeToChangelogFile="true" file="ReportDispatchImpl/add_DocumentTemplatePlaceOfUse.xml"/> <include relativeToChangelogFile="true" file="alter_VisitrecommendationpriorityDatatype.xml"/> <include relativeToChangelogFile="true" file="alter_KeywordTitlesForTranslation.xml"/> + <include relativeToChangelogFile="true" file="alter_CommrestrictionsEmployeeInvolved.xml"/> </databaseChangeLog> -- GitLab