From 024435ff54024d793cd2861196950a475c9eb41c Mon Sep 17 00:00:00 2001
From: Kavin <20838718+FireMasterK@users.noreply.github.com>
Date: Thu, 26 Oct 2023 17:39:25 +0100
Subject: [PATCH] Add database migration for username length change.
---
.../resources/changelog/db.changelog-master.xml | 1 +
src/main/resources/changelog/version/2-oidc.xml | 15 +++++++++++++++
2 files changed, 16 insertions(+)
create mode 100644 src/main/resources/changelog/version/2-oidc.xml
diff --git a/src/main/resources/changelog/db.changelog-master.xml b/src/main/resources/changelog/db.changelog-master.xml
index 68fb5f2..b8b5e3f 100644
--- a/src/main/resources/changelog/db.changelog-master.xml
+++ b/src/main/resources/changelog/db.changelog-master.xml
@@ -6,5 +6,6 @@
+
diff --git a/src/main/resources/changelog/version/2-oidc.xml b/src/main/resources/changelog/version/2-oidc.xml
new file mode 100644
index 0000000..817e29c
--- /dev/null
+++ b/src/main/resources/changelog/version/2-oidc.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ ALTER TABLE users ALTER COLUMN username TYPE varchar(32);
+
+ ALTER TABLE users ALTER COLUMN username TYPE varchar(24);
+
+
+
+