From 148cd5cce6f42fba05c3013ebe5add028bc9fcac Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 5 Sep 2019 10:45:17 +0200 Subject: [PATCH] db updates pandora_db --- pandora_console/extras/mr/32.sql | 10 +++++----- .../extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 4 ++-- pandora_console/pandoradb.sql | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pandora_console/extras/mr/32.sql b/pandora_console/extras/mr/32.sql index dd99e7b9d9..eea330c8aa 100644 --- a/pandora_console/extras/mr/32.sql +++ b/pandora_console/extras/mr/32.sql @@ -1,11 +1,11 @@ START TRANSACTION ALTER TABLE `tdatabase` MODIFY `last_error` text; -ALTER TABLE `tdatabase` MODIFY `host` VARCHAR(255); -ALTER TABLE `tdatabase` ADD COLUMN `label` VARCHAR(255); -ALTER TABLE `tdatabase` MODIFY `os_user` VARCHAR(255); -ALTER TABLE `tdatabase` MODIFY `db_port` INT UNSIGNED NOT NULL; -ALTER TABLE `tdatabase` MODIFY `os_port` INT UNSIGNED NOT NULL; +ALTER TABLE `tdatabase` MODIFY `host` VARCHAR(255) DEFAULT ''; +ALTER TABLE `tdatabase` ADD COLUMN `label` VARCHAR(255) DEFAULT ''; +ALTER TABLE `tdatabase` MODIFY `os_user` VARCHAR(255) DEFAULT ''; +ALTER TABLE `tdatabase` MODIFY `db_port` INT UNSIGNED NOT NULL DEFAULT 3306; +ALTER TABLE `tdatabase` MODIFY `os_port` INT UNSIGNED NOT NULL DEFAULT 22; ALTER TABLE `tdatabase` ADD COLUMN `ssh_key` TEXT; ALTER TABLE `tdatabase` ADD COLUMN `ssh_pubkey` TEXT; diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index b54e0522a3..6ed7588202 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -222,9 +222,9 @@ CREATE TABLE IF NOT EXISTS `tdatabase` ( `id` INT(10) unsigned NOT NULL auto_increment, `host` VARCHAR(255) default '', `label` VARCHAR(255) default '', - `os_port` int unsigned default 22, + `os_port` INT UNSIGNED NOT NULL DEFAULT 22, `os_user` VARCHAR(255) default '', - `db_port` int unsigned default 3306, + `db_port` INT UNSIGNED NOT NULL DEFAULT 3306, `status` tinyint(1) unsigned default '0', `action` tinyint(1) unsigned default '0', `ssh_key` TEXT, diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 8436624366..33a69dcfc4 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -2441,9 +2441,9 @@ CREATE TABLE IF NOT EXISTS `tdatabase` ( `id` INT(10) unsigned NOT NULL auto_increment, `host` VARCHAR(255) default '', `label` VARCHAR(255) default '', - `os_port` int unsigned default 22, + `os_port` INT UNSIGNED NOT NULL DEFAULT 22, `os_user` VARCHAR(255) default '', - `db_port` int unsigned default 3306, + `db_port` INT UNSIGNED NOT NULL DEFAULT 3306, `status` tinyint(1) unsigned default '0', `action` tinyint(1) unsigned default '0', `ssh_key` TEXT,