Wrong comparison on Duplicate Alter-Table call fixed
This commit is contained in:
parent
748dafa691
commit
b7993052f7
@ -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");
|
$mysqli->query("ALTER TABLE `" . self::TABLE_RECORDS . "` ADD `checkpoints` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL");
|
||||||
if ($mysqli->error) {
|
if ($mysqli->error) {
|
||||||
if ($mysqli->errno === 1062) {
|
if ($mysqli->errno !== 1062) {
|
||||||
// Duplicate
|
// Duplicate
|
||||||
trigger_error($mysqli->error, E_USER_ERROR);
|
trigger_error($mysqli->error, E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user