mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Adapt correct table
This commit is contained in:
parent
022d59955f
commit
c33be5d3da
@ -47,14 +47,14 @@ if (isset($include) and $include == true) {
|
||||
|
||||
$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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user