From 870ef4df9fab4f584c18e09fef8876880b622f65 Mon Sep 17 00:00:00 2001 From: Yves Peter Date: Thu, 27 Jan 2022 17:16:29 +0100 Subject: [PATCH] add unique constraint on TAMW_RESOURCECONTEXT for (CONTEXT_ID, RESOURCE_ID) --- .../resources/liquibase/auto.db.changelog.xml | 3 +++ ..._add_resourcecontext_unique_constraint.xml | 10 ++++++++++ .../testdb/amwFileDbIntegrationEmpty.mv.db | Bin 491520 -> 520192 bytes 3 files changed, 13 insertions(+) create mode 100644 AMW_business/src/main/resources/liquibase/changesets/model/refactoring/#550_add_resourcecontext_unique_constraint.xml diff --git a/AMW_business/src/main/resources/liquibase/auto.db.changelog.xml b/AMW_business/src/main/resources/liquibase/auto.db.changelog.xml index 87b8501b6..48d5a4b87 100644 --- a/AMW_business/src/main/resources/liquibase/auto.db.changelog.xml +++ b/AMW_business/src/main/resources/liquibase/auto.db.changelog.xml @@ -100,4 +100,7 @@ + + + diff --git a/AMW_business/src/main/resources/liquibase/changesets/model/refactoring/#550_add_resourcecontext_unique_constraint.xml b/AMW_business/src/main/resources/liquibase/changesets/model/refactoring/#550_add_resourcecontext_unique_constraint.xml new file mode 100644 index 000000000..7dc4c5ada --- /dev/null +++ b/AMW_business/src/main/resources/liquibase/changesets/model/refactoring/#550_add_resourcecontext_unique_constraint.xml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/AMW_business/src/test/resources/integration-test/testdb/amwFileDbIntegrationEmpty.mv.db b/AMW_business/src/test/resources/integration-test/testdb/amwFileDbIntegrationEmpty.mv.db index fceb67b42f5b836e4eabc3323b0d4202d393a18f..f85121b347420d1f099a37df60370e6873f802dc 100644 GIT binary patch delta 11737 zcmeI&cYIV;+6VACNi8`+) z`65ypH1dC(6m9!v{m)aAyirk65&n;wr+u8165(%>n%pckkmQYzN=``)#3t7BMbvB5 zq+xQiByYs0sZE;JZPkplcdDBKy+fgKuqQfqx1F(%U<)p^P8uabcel@ zawqo&sc9yghRKbSyn%RQi=>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