From ef3d4fbae85bd88c4edd5ca6506b670bd48bbd1d Mon Sep 17 00:00:00 2001 From: "A.Voegl" <A.Voegl@avoegl.aditosoftware.local> Date: Fri, 1 Mar 2019 15:04:43 +0100 Subject: [PATCH] Keyword SalesprojectCompetitionState --- .../2019.2/SalesprojectCompetitionState.xml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 others/db_changes/data_alias/basic/2019.2/SalesprojectCompetitionState.xml diff --git a/others/db_changes/data_alias/basic/2019.2/SalesprojectCompetitionState.xml b/others/db_changes/data_alias/basic/2019.2/SalesprojectCompetitionState.xml new file mode 100644 index 0000000000..829092c2bf --- /dev/null +++ b/others/db_changes/data_alias/basic/2019.2/SalesprojectCompetitionState.xml @@ -0,0 +1,66 @@ +<?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.voegl" id="2991ebff-fbc5-4862-ac79-4b8217e71e68"> + <renameColumn newColumnName="STATUS_OLD" oldColumnName="STATUS" tableName="SALESPROJECT_COMPETITION"/> + <addColumn tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" type="CHAR(36)"/> + </addColumn> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" value="90dabaf6-b62a-4a5b-a9ff-449e5a898a24"/> + <where>STATUS_OLD = 1</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" value="2709acc9-df9c-470b-840c-6ff89fe0bf4e"/> + <where>STATUS_OLD = 2</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" value="fb9d270b-a62d-4a78-a3b8-a49dc5afe36d"/> + <where>STATUS_OLD = 3</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" value="bae61bdf-ef67-4074-9db6-99a292dc8a6d"/> + <where>STATUS_OLD = 4</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" value="aa4aff7e-3c1a-4a48-95f6-297e341cb7aa"/> + <where>STATUS_OLD = 5</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" value="ff73172c-8517-4b6e-98cb-43aebacd9af1"/> + <where>STATUS_OLD = 6</where> + </update> + <dropColumn tableName="SALESPROJECT_COMPETITION" columnName="STATUS_OLD"/> + + <rollback> + <renameColumn newColumnName="STATUS_OLD" oldColumnName="STATUS" tableName="SALESPROJECT_COMPETITION"/> + <addColumn tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" type="INTEGER"/> + </addColumn> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" valueNumeric="1"/> + <where>STATUS_OLD = '90dabaf6-b62a-4a5b-a9ff-449e5a898a24'</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" valueNumeric="2"/> + <where>STATUS_OLD = '2709acc9-df9c-470b-840c-6ff89fe0bf4e'</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" valueNumeric="3"/> + <where>STATUS_OLD = 'fb9d270b-a62d-4a78-a3b8-a49dc5afe36d'</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" valueNumeric="4"/> + <where>STATUS_OLD = 'bae61bdf-ef67-4074-9db6-99a292dc8a6d'</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" valueNumeric="5"/> + <where>STATUS_OLD = 'aa4aff7e-3c1a-4a48-95f6-297e341cb7aa'</where> + </update> + <update tableName="SALESPROJECT_COMPETITION"> + <column name="STATUS" valueNumeric="6"/> + <where>STATUS_OLD = 'ff73172c-8517-4b6e-98cb-43aebacd9af1'</where> + </update> + <dropColumn tableName="SALESPROJECT_COMPETITION" columnName="STATUS_OLD"/> + </rollback> + </changeSet> +</databaseChangeLog> \ No newline at end of file -- GitLab