Skip to content

Commit

Permalink
Fix typo in migrate script
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Dec 27, 2019
1 parent b0783f9 commit 6f1b0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/migrate-packet-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
}

$link2->query(sprintf(
'UPDATE `packets` SET `status_bitmask` = (`status_bitmask` & ~%d) WHERE `id` = %d LIMIT 1;',
'UPDATE `packets` SET `options_bitmask` = (`options_bitmask` & ~%d) WHERE `id` = %d LIMIT 1;',
(NEW_STATUS_RESEARCH | NEW_STATUS_DEPRECATED), $id
));

if ($new_status == NEW_STATUS_DEPRECATED || $new_status == NEW_STATUS_RESEARCH) {
$link2->query(sprintf(
'UPDATE `packets` SET `status_bitmask` = (`status_bitmask` | %d) WHERE `id` = %d LIMIT 1;',
'UPDATE `packets` SET `options_bitmask` = (`options_bitmask` | %d) WHERE `id` = %d LIMIT 1;',
$new_status, $id
));
}
Expand Down

0 comments on commit 6f1b0f8

Please sign in to comment.