db updates pandora_db

This commit is contained in:
fbsanchez 2019-09-05 10:45:17 +02:00
parent d0e6f0dbae
commit 148cd5cce6
3 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,