From b5003caf6e170cfe10aa5749f7877e0aac469360 Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 25 Jan 2022 20:33:13 +0100 Subject: [PATCH] added panel_id Signed-off-by: tracer --- src/Controller/DatabaseConnection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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`)