From 1640a9d222e6e837ca37557c50055cc8fe8739ad Mon Sep 17 00:00:00 2001 From: Felix Dittrich <31076102+f11h@users.noreply.github.com> Date: Mon, 24 Jan 2022 17:06:47 +0100 Subject: [PATCH] Add seperate unique constraints for hashed_guid and hashed_guid_dob (#258) --- src/main/resources/db/changelog.yml | 3 +++ ...dd-seperate-unique-constraints-for-hashed-guid.yml | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/main/resources/db/changelog/v007-add-seperate-unique-constraints-for-hashed-guid.yml diff --git a/src/main/resources/db/changelog.yml b/src/main/resources/db/changelog.yml index f4994cbf..73281da4 100644 --- a/src/main/resources/db/changelog.yml +++ b/src/main/resources/db/changelog.yml @@ -23,3 +23,6 @@ databaseChangeLog: - include: file: changelog/v006-add-index-dob-hashed-guid.yml relativeToChangelogFile: true + - include: + file: changelog/v007-add-seperate-unique-constraints-for-hashed-guid.yml + relativeToChangelogFile: true diff --git a/src/main/resources/db/changelog/v007-add-seperate-unique-constraints-for-hashed-guid.yml b/src/main/resources/db/changelog/v007-add-seperate-unique-constraints-for-hashed-guid.yml new file mode 100644 index 00000000..70c90978 --- /dev/null +++ b/src/main/resources/db/changelog/v007-add-seperate-unique-constraints-for-hashed-guid.yml @@ -0,0 +1,11 @@ +databaseChangeLog: + - changeSet: + id: add-seperate-unique-constraints-for-hashed-guid + author: f11h + changes: + - addUniqueConstraint: + tableName: app_session + columnNames: hashed_guid + - addUniqueConstraint: + tableName: app_session + columnNames: hashed_guid_dob