From 926c68be5d18f22bd9b44edf8d819b26bb8782b6 Mon Sep 17 00:00:00 2001 From: jonthekiller Date: Sun, 2 Aug 2020 10:32:27 +0200 Subject: [PATCH] Grow value column size --- core/Settings/SettingManager.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/Settings/SettingManager.php b/core/Settings/SettingManager.php index 3d205a74..ba78c22e 100644 --- a/core/Settings/SettingManager.php +++ b/core/Settings/SettingManager.php @@ -78,7 +78,15 @@ class SettingManager implements CallbackListener, UsageInformationAble { trigger_error($mysqli->error, E_USER_ERROR); } } - + + // Grow the size limit for plugins settings + $mysqli->query("ALTER TABLE `" . self::TABLE_SETTINGS . "` MODIFY `value` VARCHAR(500);"); + if ($mysqli->error) { + // If not Duplicate + if ($mysqli->errno !== 1060) { + trigger_error($mysqli->error, E_USER_ERROR); + } + } return $result; }