From 11265dc2502cfe4f7d6cfdebc324cfd36cba91de Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 20 Jan 2023 18:23:14 +0300 Subject: db: case-insensitive jid and email --- src/main/resources/db/specific/h2/V1.35__case_insensitive_email_jid.sql | 2 ++ .../db/specific/postgresql/V1.35__case_insensitive_email_jid.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 src/main/resources/db/specific/h2/V1.35__case_insensitive_email_jid.sql create mode 100644 src/main/resources/db/specific/postgresql/V1.35__case_insensitive_email_jid.sql (limited to 'src/main') diff --git a/src/main/resources/db/specific/h2/V1.35__case_insensitive_email_jid.sql b/src/main/resources/db/specific/h2/V1.35__case_insensitive_email_jid.sql new file mode 100644 index 00000000..a20debf6 --- /dev/null +++ b/src/main/resources/db/specific/h2/V1.35__case_insensitive_email_jid.sql @@ -0,0 +1,2 @@ +ALTER TABLE jids ALTER COLUMN jid SET DATA TYPE VARCHAR_IGNORECASE(255); +ALTER TABLE emails ALTER COLUMN email SET DATA TYPE VARCHAR_IGNORECASE(255) diff --git a/src/main/resources/db/specific/postgresql/V1.35__case_insensitive_email_jid.sql b/src/main/resources/db/specific/postgresql/V1.35__case_insensitive_email_jid.sql new file mode 100644 index 00000000..93a987b8 --- /dev/null +++ b/src/main/resources/db/specific/postgresql/V1.35__case_insensitive_email_jid.sql @@ -0,0 +1,2 @@ +ALTER TABLE jids ALTER COLUMN jid TYPE character varying(255) COLLATE case_insensitive; +ALTER TABLE emails ALTER COLUMN email TYPE character varying(255) COLLATE case_insensitive -- cgit v1.2.3