mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Add db changes to pandora_migrate - #1748
This commit is contained in:
parent
5ab43d8106
commit
749bc20018
@ -1482,3 +1482,44 @@ ALTER TABLE `tdashboard` ADD COLUMN `cells_slideshow` TINYINT(1) NOT NULL defaul
|
|||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
SELECT max(unified_filters_id) INTO @max FROM tsnmp_filter;
|
SELECT max(unified_filters_id) INTO @max FROM tsnmp_filter;
|
||||||
UPDATE tsnmp_filter tsf,(SELECT @max:= @max) m SET tsf.unified_filters_id = @max:= @max + 1 where tsf.unified_filters_id=0;
|
UPDATE tsnmp_filter tsf,(SELECT @max:= @max) m SET tsf.unified_filters_id = @max:= @max + 1 where tsf.unified_filters_id=0;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tcluster`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
create table IF NOT EXISTS `tcluster`(
|
||||||
|
`id` int unsigned not null auto_increment,
|
||||||
|
`name` tinytext unsigned not null,
|
||||||
|
`cluster_type` enum('AA','AP') default 'AA' unsigned not null,
|
||||||
|
`description` text unsigned not null,
|
||||||
|
`group` integer unsigned not null,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
FOREIGN KEY (`group`) REFERENCES tgrupo(`id_grupo`)
|
||||||
|
ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
|
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tcluster_item`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
create table IF NOT EXISTS `tcluster_item`(
|
||||||
|
`id_cluster` int unsigned not null auto_increment,
|
||||||
|
`name` tinytext unsigned not null,
|
||||||
|
`item_type` enum('AA','AP') default 'AA' unsigned not null,
|
||||||
|
`critical_limit` INTEGER unsigned NOT NULL default '0',
|
||||||
|
`warning_limit` INTEGER unsigned NOT NULL default '0',
|
||||||
|
`is_critical` tinyint(2) unsigned NOT NULL default '0',
|
||||||
|
PRIMARY KEY (`id_cluster`)
|
||||||
|
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tcluster_agent`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
create table IF NOT EXISTS `tcluster_agent`(
|
||||||
|
`id_cluster` int unsigned not null auto_increment,
|
||||||
|
`id_agent` int unsigned not null,
|
||||||
|
PRIMARY KEY (`id_cluster`),
|
||||||
|
FOREIGN KEY (`id_agent`) REFERENCES tagente(`id_agente`)
|
||||||
|
ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
|
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
@ -3029,6 +3029,10 @@ CREATE TABLE IF NOT EXISTS `treset_pass` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tcluster`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
|
||||||
create table IF NOT EXISTS `tcluster`(
|
create table IF NOT EXISTS `tcluster`(
|
||||||
`id` int unsigned not null auto_increment,
|
`id` int unsigned not null auto_increment,
|
||||||
`name` tinytext unsigned not null,
|
`name` tinytext unsigned not null,
|
||||||
@ -3040,6 +3044,10 @@ create table IF NOT EXISTS `tcluster`(
|
|||||||
ON DELETE SET NULL ON UPDATE CASCADE
|
ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
) engine=InnoDB DEFAULT CHARSET=utf8;
|
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tcluster_item`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
|
||||||
create table IF NOT EXISTS `tcluster_item`(
|
create table IF NOT EXISTS `tcluster_item`(
|
||||||
`id_cluster` int unsigned not null auto_increment,
|
`id_cluster` int unsigned not null auto_increment,
|
||||||
`name` tinytext unsigned not null,
|
`name` tinytext unsigned not null,
|
||||||
@ -3050,6 +3058,10 @@ create table IF NOT EXISTS `tcluster_item`(
|
|||||||
PRIMARY KEY (`id_cluster`)
|
PRIMARY KEY (`id_cluster`)
|
||||||
) engine=InnoDB DEFAULT CHARSET=utf8;
|
) engine=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
-- Table `tcluster_agent`
|
||||||
|
-- ---------------------------------------------------------------------
|
||||||
|
|
||||||
create table IF NOT EXISTS `tcluster_agent`(
|
create table IF NOT EXISTS `tcluster_agent`(
|
||||||
`id_cluster` int unsigned not null auto_increment,
|
`id_cluster` int unsigned not null auto_increment,
|
||||||
`id_agent` int unsigned not null,
|
`id_agent` int unsigned not null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user