diff --git a/others/db_changes/data_alias/basic/2019.2/SalesProjectEstimation.xml b/others/db_changes/data_alias/basic/2019.2/SalesProjectEstimation.xml deleted file mode 100644 index 740b8ccaf4323ccfc6a055e31a53f2c237f0830c..0000000000000000000000000000000000000000 --- a/others/db_changes/data_alias/basic/2019.2/SalesProjectEstimation.xml +++ /dev/null @@ -1,106 +0,0 @@ -<?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="41eb17e3-2e67-4d45-907a-a2762e29b50c"> - <renameColumn newColumnName="ESTIMATIONVALUE_OLD" oldColumnName="ESTIMATIONVALUE" tableName="SALESPROJECT"/> - <addColumn tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" type="CHAR(36)"/> - </addColumn> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="c6c49da4-80dc-4c32-b5b0-c33eac27de7f"/> - <where>ESTIMATIONVALUE_OLD = 1</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="9237ee74-bb91-4333-8114-4485b35cf8d7"/> - <where>ESTIMATIONVALUE_OLD = 2</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="e3e16d06-1390-4d84-81bd-c495a401cc70"/> - <where>ESTIMATIONVALUE_OLD = 3</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="2ef3ac7d-72b8-43b3-9cc1-64ffdf43fe2f"/> - <where>ESTIMATIONVALUE_OLD = 4</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="4b322f3f-815e-442e-ac63-a983f3efca6b"/> - <where>ESTIMATIONVALUE_OLD = 5</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="3179371b-b647-4141-b575-3c26ce9f9213"/> - <where>ESTIMATIONVALUE_OLD = 6</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="3088256a-f247-40cb-ad4e-33892cbf5ca3"/> - <where>ESTIMATIONVALUE_OLD = 7</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="a2faa45e-bc7a-41f6-8130-7c7a636ddc9f"/> - <where>ESTIMATIONVALUE_OLD = 8</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="d2e97e88-77fd-4fdb-8d5e-30807e2a40e2"/> - <where>ESTIMATIONVALUE_OLD = 9</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="87fd87af-1cb6-40fb-843e-aee612862362"/> - <where>ESTIMATIONVALUE_OLD = 10</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" value="5de71df0-5086-49b8-bd72-a2c0a698e134"/> - <where>ESTIMATIONVALUE_OLD = 11</where> - </update> - <dropColumn tableName="SALESPROJECT" columnName="ESTIMATIONVALUE_OLD"/> - - <rollback> - <renameColumn newColumnName="ESTIMATIONVALUE_OLD" oldColumnName="ESTIMATIONVALUE" tableName="SALESPROJECT"/> - <addColumn tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" type="INTEGER"/> - </addColumn> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="1"/> - <where>ESTIMATIONVALUE_OLD = 'c6c49da4-80dc-4c32-b5b0-c33eac27de7f'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="2"/> - <where>ESTIMATIONVALUE_OLD = '9237ee74-bb91-4333-8114-4485b35cf8d7'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="3"/> - <where>ESTIMATIONVALUE_OLD = 'e3e16d06-1390-4d84-81bd-c495a401cc70'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="4"/> - <where>ESTIMATIONVALUE_OLD = '2ef3ac7d-72b8-43b3-9cc1-64ffdf43fe2f'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="5"/> - <where>ESTIMATIONVALUE_OLD = '4b322f3f-815e-442e-ac63-a983f3efca6b'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="6"/> - <where>ESTIMATIONVALUE_OLD = '3179371b-b647-4141-b575-3c26ce9f9213'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="7"/> - <where>ESTIMATIONVALUE_OLD = '3088256a-f247-40cb-ad4e-33892cbf5ca3'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="8"/> - <where>ESTIMATIONVALUE_OLD = 'a2faa45e-bc7a-41f6-8130-7c7a636ddc9f'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="9"/> - <where>ESTIMATIONVALUE_OLD = 'd2e97e88-77fd-4fdb-8d5e-30807e2a40e2'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="10"/> - <where>ESTIMATIONVALUE_OLD = '87fd87af-1cb6-40fb-843e-aee612862362'</where> - </update> - <update tableName="SALESPROJECT"> - <column name="ESTIMATIONVALUE" valueNumeric="11"/> - <where>ESTIMATIONVALUE_OLD = '5de71df0-5086-49b8-bd72-a2c0a698e134'</where> - </update> - <dropColumn tableName="SALESPROJECT" columnName="ESTIMATIONVALUE_OLD"/> - </rollback> - </changeSet> -</databaseChangeLog> \ No newline at end of file diff --git a/others/db_changes/data_alias/basic/2019.2/drop_estimation_salesproject.xml b/others/db_changes/data_alias/basic/2019.2/drop_estimation_salesproject.xml new file mode 100644 index 0000000000000000000000000000000000000000..ab045eecb61425666f5f5a69642cb138dc77cbb5 --- /dev/null +++ b/others/db_changes/data_alias/basic/2019.2/drop_estimation_salesproject.xml @@ -0,0 +1,14 @@ +<?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.hoermann" id="0601eb26-fc5e-4b57-ad18-2b6a064f383f"> + <dropColumn tableName="SALESPROJECT" columnName="ESTIMATION"/> + <dropColumn tableName="SALESPROJECT" columnName="ESTIMATIONVALUE"/> + + <rollback> + <addColumn tableName="SALESPROJECT"> + <column name="ESTIMATION" type="NVARCHAR(50)"/> + <column name="ESTIMATIONVALUE" type="INTEGER"/> + </addColumn> + </rollback> + </changeSet> +</databaseChangeLog> \ No newline at end of file