Merge pull request #7 from jonthekiller/jonthekiller-patch-9

Grow value column size
This commit is contained in:
jonthekiller 2020-08-02 18:27:58 +02:00 committed by GitHub
commit 2c4455ee63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}