summaryrefslogtreecommitdiffstats
path: root/db/old_migrations/patch-notification-config.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/old_migrations/patch-notification-config.sql')
-rw-r--r--db/old_migrations/patch-notification-config.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/old_migrations/patch-notification-config.sql b/db/old_migrations/patch-notification-config.sql
new file mode 100644
index 0000000..16944fb
--- /dev/null
+++ b/db/old_migrations/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;