Skip to content

Commit

Permalink
Adapt correct table
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichblock committed May 14, 2017
1 parent 022d599 commit c33be5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/update_530-600.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@

$serverIDMissing = true;

$query = $sql->prepare("SHOW COLUMNS FROM `settings` WHERE `Field`='serverID'");
$query = $sql->prepare("SHOW COLUMNS FROM `servertypes` WHERE `Field`='serverID'");
$query->execute();
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
$serverIDMissing = false;
}

if ($serverIDMissing) {
$query = $sql->prepare("ALTER TABLE `settings` ADD `serverID` INT(10) UNSIGNED");
$query = $sql->prepare("ALTER TABLE `servertypes` ADD `serverID` INT(10) UNSIGNED");
$query->execute();
$query->closecursor();
}
Expand Down

0 comments on commit c33be5d

Please sign in to comment.