added panel_id

Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
tracer 2022-01-25 20:33:13 +01:00
parent 3a14eeb3c5
commit b5003caf6e
1 changed files with 2 additions and 1 deletions

View File

@ -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`)