add tables merge process pandora_enterprise#12352
This commit is contained in:
parent
6a998c79ae
commit
d5c24609d6
|
@ -0,0 +1,40 @@
|
||||||
|
START TRANSACTION;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `tmerge_error`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `tmerge_error` (
|
||||||
|
`id` int(10) NOT NULL auto_increment,
|
||||||
|
`id_node` int(10) default 0,
|
||||||
|
`phase` int(10) default 0,
|
||||||
|
`step` int(10) default 0,
|
||||||
|
`msg` LONGTEXT default "",
|
||||||
|
`action` text default "",
|
||||||
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `tmerge_steps`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `tmerge_steps` (
|
||||||
|
`id` int(10) NOT NULL auto_increment,
|
||||||
|
`id_node` int(10) default 0,
|
||||||
|
`phase` int(10) default 0,
|
||||||
|
`total` int(10) default 0,
|
||||||
|
`step` int(10) default 0,
|
||||||
|
`debug` varchar(1024) default "",
|
||||||
|
`action` varchar(100) default "",
|
||||||
|
`affected` varchar(100) default "",
|
||||||
|
`query` mediumtext default "",
|
||||||
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `tmerge_queries`;
|
||||||
|
CREATE TABLE IF NOT EXISTS `tmerge_queries` (
|
||||||
|
`steps` int(10) NOT NULL auto_increment,
|
||||||
|
`action` varchar(100) default "",
|
||||||
|
`affected` varchar(100) default "",
|
||||||
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
||||||
|
`query` LONGTEXT NOT NULL default "",
|
||||||
|
PRIMARY KEY (`steps`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -4534,4 +4534,47 @@ CREATE TABLE IF NOT EXISTS `tpandora_cve` (
|
||||||
`cvss_score` DOUBLE DEFAULT NULL,
|
`cvss_score` DOUBLE DEFAULT NULL,
|
||||||
`cvss_vector` VARCHAR(255) DEFAULT NULL,
|
`cvss_vector` VARCHAR(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (`cve_id`)
|
PRIMARY KEY (`cve_id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tmerge_error`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tmerge_error` (
|
||||||
|
`id` int(10) NOT NULL auto_increment,
|
||||||
|
`id_node` int(10) default 0,
|
||||||
|
`phase` int(10) default 0,
|
||||||
|
`step` int(10) default 0,
|
||||||
|
`msg` LONGTEXT default "",
|
||||||
|
`action` text default "",
|
||||||
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tmerge_steps`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tmerge_steps` (
|
||||||
|
`id` int(10) NOT NULL auto_increment,
|
||||||
|
`id_node` int(10) default 0,
|
||||||
|
`phase` int(10) default 0,
|
||||||
|
`total` int(10) default 0,
|
||||||
|
`step` int(10) default 0,
|
||||||
|
`debug` varchar(1024) default "",
|
||||||
|
`action` varchar(100) default "",
|
||||||
|
`affected` varchar(100) default "",
|
||||||
|
`query` mediumtext default "",
|
||||||
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tmerge_queries`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tmerge_queries` (
|
||||||
|
`steps` int(10) NOT NULL auto_increment,
|
||||||
|
`action` varchar(100) default "",
|
||||||
|
`affected` varchar(100) default "",
|
||||||
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
||||||
|
`query` LONGTEXT NOT NULL default "",
|
||||||
|
PRIMARY KEY (`steps`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
Loading…
Reference in New Issue