From f4364099c6947b813cb5182f7ef28b9637df5291 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Mon, 8 Jul 2024 16:37:29 +0200 Subject: [PATCH] DB/CustomData * alter value column from varchar to text to prevent truncated data --- setup/db_structure.sql | 4 ++-- setup/updates/1720448853_01.sql | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 setup/updates/1720448853_01.sql diff --git a/setup/db_structure.sql b/setup/db_structure.sql index ef1f1160..5a6dbbfb 100644 --- a/setup/db_structure.sql +++ b/setup/db_structure.sql @@ -2419,7 +2419,7 @@ CREATE TABLE `aowow_setup_custom_data` ( `command` varchar(100) NOT NULL DEFAULT '', `entry` int NOT NULL DEFAULT 0 COMMENT 'typeId', `field` varchar(100) NOT NULL DEFAULT '', - `value` varchar(100) DEFAULT NULL, + `value` text DEFAULT NULL, `comment` text DEFAULT NULL, KEY `aowow_setup_custom_data_command_IDX` (`command`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3226,7 +3226,7 @@ UNLOCK TABLES; LOCK TABLES `aowow_dbversion` WRITE; /*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */; -INSERT INTO `aowow_dbversion` VALUES (1720385208,0,NULL,NULL); +INSERT INTO `aowow_dbversion` VALUES (1720448854,0,NULL,NULL); /*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */; UNLOCK TABLES; diff --git a/setup/updates/1720448853_01.sql b/setup/updates/1720448853_01.sql new file mode 100644 index 00000000..6436fe43 --- /dev/null +++ b/setup/updates/1720448853_01.sql @@ -0,0 +1,2 @@ +ALTER TABLE `aowow_setup_custom_data` + MODIFY COLUMN `value` text DEFAULT NULL;