2019-06-07 11:24:00 +02:00
|
|
|
START TRANSACTION;
|
|
|
|
|
|
|
|
DELETE FROM `ttipo_modulo` WHERE `nombre` LIKE 'log4x';
|
|
|
|
|
2019-06-21 23:05:21 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tcredential_store` (
|
|
|
|
`identifier` varchar(100) NOT NULL,
|
|
|
|
`id_group` mediumint(4) unsigned NOT NULL DEFAULT 0,
|
|
|
|
`product` enum('CUSTOM', 'AWS', 'AZURE', 'GOOGLE') default 'CUSTOM',
|
|
|
|
`username` text,
|
|
|
|
`password` text,
|
|
|
|
`extra_1` text,
|
|
|
|
`extra_2` text,
|
|
|
|
PRIMARY KEY (`identifier`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2019-06-07 11:24:00 +02:00
|
|
|
|
2019-06-24 19:36:50 +02:00
|
|
|
INSERT INTO `tcredential_store` (`identifier`, `id_group`, `product`, `username`, `password`) VALUES ("imported_aws_account", 0, "AWS", (SELECT `value` FROM `tconfig` WHERE `token` = "aws_access_key_id" LIMIT 1), (SELECT `value` FROM `tconfig` WHERE `token` = "aws_secret_access_key" LIMIT 1));
|
|
|
|
|
|
|
|
|
2019-06-07 11:24:00 +02:00
|
|
|
COMMIT;
|