mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
added tpolicy_group_agents
This commit is contained in:
parent
e26aca338a
commit
4a61efd7b6
@ -14,4 +14,15 @@ SOURCE procedures/alertEvents.sql;
|
|||||||
CALL `migrateEventRanges`();
|
CALL `migrateEventRanges`();
|
||||||
DROP PROCEDURE `migrateEventRanges`;
|
DROP PROCEDURE `migrateEventRanges`;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `tpolicy_group_agents` (
|
||||||
|
`id` SERIAL,
|
||||||
|
`id_policy` INT UNSIGNED,
|
||||||
|
`id_agent` INT UNSIGNED,
|
||||||
|
`direct` TINYINT UNSIGNED DEFAULT 0,
|
||||||
|
FOREIGN KEY (`id_policy`) REFERENCES `tpolicies`(`id`)
|
||||||
|
ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`)
|
||||||
|
ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
@ -213,6 +213,20 @@ CREATE TABLE IF NOT EXISTS `tpolicy_groups` (
|
|||||||
UNIQUE (`id_policy`, `id_group`)
|
UNIQUE (`id_policy`, `id_group`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `tpolicy_group_agents`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tpolicy_group_agents` (
|
||||||
|
`id` SERIAL,
|
||||||
|
`id_policy` INT UNSIGNED,
|
||||||
|
`id_agent` INT UNSIGNED,
|
||||||
|
`direct` TINYINT UNSIGNED DEFAULT 0,
|
||||||
|
FOREIGN KEY (`id_policy`) REFERENCES `tpolicies`(`id`)
|
||||||
|
ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`)
|
||||||
|
ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tdashboard`
|
-- Table `tdashboard`
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
|
@ -2592,6 +2592,21 @@ CREATE TABLE IF NOT EXISTS `tpolicy_groups` (
|
|||||||
UNIQUE (`id_policy`, `id_group`)
|
UNIQUE (`id_policy`, `id_group`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `tpolicy_group_agents`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `tpolicy_group_agents` (
|
||||||
|
`id` SERIAL,
|
||||||
|
`id_policy` INT UNSIGNED,
|
||||||
|
`id_agent` INT UNSIGNED,
|
||||||
|
`direct` TINYINT UNSIGNED DEFAULT 0,
|
||||||
|
FOREIGN KEY (`id_policy`) REFERENCES `tpolicies`(`id`)
|
||||||
|
ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`)
|
||||||
|
ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tdashboard`
|
-- Table `tdashboard`
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user