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 c2994f220624e5a6b243d0bfe019ac32c3092740..5961affe7d1ed6c83733cd787642b13b06654653 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 0000000000000000000000000000000000000000..77bb7e789f09aea4f268a4f50b79d7c9c9de5780 --- /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>