From 4ef048fc64c250f569a12caaebc4d43caca243ef Mon Sep 17 00:00:00 2001 From: Lea9250 Date: Mon, 16 Sep 2024 14:49:51 +0200 Subject: [PATCH] refactor(devices): update TVALUE column type to use TEXT --- files/update/7079.sql | 8 ++++++++ var.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 files/update/7079.sql diff --git a/files/update/7079.sql b/files/update/7079.sql new file mode 100644 index 000000000..5867964a7 --- /dev/null +++ b/files/update/7079.sql @@ -0,0 +1,8 @@ +UNLOCK TABLES; + +-- Drop the existing index on TVALUE +ALTER TABLE devices DROP INDEX TVALUE; + +-- Update column to TEXT and recreate the index +ALTER TABLE devices MODIFY COLUMN TVALUE TEXT; +ADD INDEX TVALUE (TVALUE(255)); diff --git a/var.php b/var.php index 969fd5b0c..88c9eb0dc 100644 --- a/var.php +++ b/var.php @@ -73,7 +73,7 @@ /** * OCS' MySQL database version */ -define('GUI_VER', '7078'); +define('GUI_VER', '7079'); /**