From 16a396debbc3a88e36372732d370f8e185d9c04e Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 21 Sep 2023 20:38:54 +0800 Subject: [PATCH] Similar to #3763, but for 1.23.3 --- db/patch-notification-config.sql | 10 ++++++++++ server/database.js | 1 + 2 files changed, 11 insertions(+) create mode 100644 db/patch-notification-config.sql diff --git a/db/patch-notification-config.sql b/db/patch-notification-config.sql new file mode 100644 index 000000000..16944fbd0 --- /dev/null +++ b/db/patch-notification-config.sql @@ -0,0 +1,10 @@ +-- You should not modify if this have pushed to Github, unless it does serious wrong with the db. +BEGIN TRANSACTION; + +-- SQLite: Change the data type of the column "config" from VARCHAR to TEXT +ALTER TABLE notification RENAME COLUMN config TO config_old; +ALTER TABLE notification ADD COLUMN config TEXT; +UPDATE notification SET config = config_old; +ALTER TABLE notification DROP COLUMN config_old; + +COMMIT; diff --git a/server/database.js b/server/database.js index c00f950be..af141dda0 100644 --- a/server/database.js +++ b/server/database.js @@ -81,6 +81,7 @@ class Database { "patch-monitor-oauth-cc.sql": true, "patch-add-timeout-monitor.sql": true, "patch-add-gamedig-given-port.sql": true, + "patch-notification-config.sql": true, }; /**