parent
3a14eeb3c5
commit
b5003caf6e
|
@ -33,7 +33,7 @@ class DatabaseConnection
|
||||||
$statement->execute();
|
$statement->execute();
|
||||||
$result = $statement->fetch();
|
$result = $statement->fetch();
|
||||||
if (empty($result)) {
|
if (empty($result)) {
|
||||||
|
// ALTER TABLE `domains` ADD `panel_id` INT NULL AFTER `id`;
|
||||||
echo 'Error: Cannot find tables.' . PHP_EOL;
|
echo 'Error: Cannot find tables.' . PHP_EOL;
|
||||||
if (confirm('Should I try to create them?')) {
|
if (confirm('Should I try to create them?')) {
|
||||||
$sql = "
|
$sql = "
|
||||||
|
@ -51,6 +51,7 @@ class DatabaseConnection
|
||||||
CREATE TABLE `domains` (
|
CREATE TABLE `domains` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||||
|
`panel_id` int(11) DEFAULT 0,
|
||||||
`a` varbinary(255) DEFAULT NULL,
|
`a` varbinary(255) DEFAULT NULL,
|
||||||
`aaaa` varbinary(255) DEFAULT NULL,
|
`aaaa` varbinary(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
|
|
Loading…
Reference in New Issue