Checked on the wrong error number all along

This commit is contained in:
Alexander Nell 2020-05-19 21:37:43 +02:00
parent b7993052f7
commit 9b46a6e7f7
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class LocalRecordsPlugin implements CallbackListener, CallQueueListener, Command
$mysqli->query("ALTER TABLE `" . self::TABLE_RECORDS . "` ADD `checkpoints` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL");
if ($mysqli->error) {
if ($mysqli->errno !== 1062) {
if ($mysqli->errno !== 1060) {
// Duplicate
trigger_error($mysqli->error, E_USER_ERROR);
}