Updated MR reference

This commit is contained in:
fbsanchez 2019-09-02 15:44:48 +02:00
parent b4991050c6
commit 5c535514e1
2 changed files with 14 additions and 11 deletions

View File

@ -9,15 +9,4 @@ DELETE FROM `tconfig` WHERE `token` LIKE 'integria_api_password';
DELETE FROM `tconfig` WHERE `token` LIKE 'integria_inventory';
DELETE FROM `tconfig` WHERE `token` LIKE 'integria_url';
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` ADD COLUMN `ssh_key` TEXT;
ALTER TABLE `tdatabase` ADD COLUMN `ssh_pubkey` TEXT;
UPDATE `tdatabase` set `label`=`host`;
COMMIT;

View File

@ -0,0 +1,14 @@
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` ADD COLUMN `ssh_key` TEXT;
ALTER TABLE `tdatabase` ADD COLUMN `ssh_pubkey` TEXT;
UPDATE `tdatabase` set `label`=`host`;
COMMIT