From cee1fb1a0d7e942f209338e9ec3c0eb88a605eda Mon Sep 17 00:00:00 2001 From: "witold.brzozowski" Date: Tue, 22 Oct 2024 17:09:32 +0200 Subject: [PATCH] Remove unique index on users mail --- .../resources/scripts/U3_5_0_3__drop_email_unique_constraint.sql | 1 + .../resources/scripts/V3_5_0_3__drop_email_unique_constraint.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/main/resources/scripts/U3_5_0_3__drop_email_unique_constraint.sql create mode 100644 src/main/resources/scripts/V3_5_0_3__drop_email_unique_constraint.sql diff --git a/src/main/resources/scripts/U3_5_0_3__drop_email_unique_constraint.sql b/src/main/resources/scripts/U3_5_0_3__drop_email_unique_constraint.sql new file mode 100644 index 0000000..e0cd1d8 --- /dev/null +++ b/src/main/resources/scripts/U3_5_0_3__drop_email_unique_constraint.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX users_mail_key ON users (mail); \ No newline at end of file diff --git a/src/main/resources/scripts/V3_5_0_3__drop_email_unique_constraint.sql b/src/main/resources/scripts/V3_5_0_3__drop_email_unique_constraint.sql new file mode 100644 index 0000000..85ae781 --- /dev/null +++ b/src/main/resources/scripts/V3_5_0_3__drop_email_unique_constraint.sql @@ -0,0 +1 @@ +ALTER TABLE users DROP CONSTRAINT IF EXISTS users_mail_key; \ No newline at end of file