diff --git a/src/Controller/DatabaseConnection.php b/src/Controller/DatabaseConnection.php index fd3c3a8..bb1c31e 100644 --- a/src/Controller/DatabaseConnection.php +++ b/src/Controller/DatabaseConnection.php @@ -33,7 +33,7 @@ class DatabaseConnection $statement->execute(); $result = $statement->fetch(); if (empty($result)) { - + // ALTER TABLE `domains` ADD `panel_id` INT NULL AFTER `id`; echo 'Error: Cannot find tables.' . PHP_EOL; if (confirm('Should I try to create them?')) { $sql = " @@ -51,6 +51,7 @@ class DatabaseConnection CREATE TABLE `domains` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `panel_id` int(11) DEFAULT 0, `a` varbinary(255) DEFAULT NULL, `aaaa` varbinary(255) DEFAULT NULL, PRIMARY KEY (`id`)