aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/db/specific
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/db/specific')
-rw-r--r--src/main/resources/db/specific/h2/V1.26__case_insensitive_nick.sql1
-rw-r--r--src/main/resources/db/specific/postgresql/V1.26__case_insensitive_nick.sql1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/main/resources/db/specific/h2/V1.26__case_insensitive_nick.sql b/src/main/resources/db/specific/h2/V1.26__case_insensitive_nick.sql
new file mode 100644
index 00000000..3b17aa00
--- /dev/null
+++ b/src/main/resources/db/specific/h2/V1.26__case_insensitive_nick.sql
@@ -0,0 +1 @@
+ALTER TABLE users ALTER COLUMN nick SET DATA TYPE VARCHAR_IGNORECASE(64)
diff --git a/src/main/resources/db/specific/postgresql/V1.26__case_insensitive_nick.sql b/src/main/resources/db/specific/postgresql/V1.26__case_insensitive_nick.sql
new file mode 100644
index 00000000..a68c15f3
--- /dev/null
+++ b/src/main/resources/db/specific/postgresql/V1.26__case_insensitive_nick.sql
@@ -0,0 +1 @@
+ALTER TABLE users ALTER COLUMN nick TYPE character varying(64) COLLATE case_insensitive