2009-09-28 Sancho Lerena <slerena@artica.es>

* pandoradb.sql: Added id_group to talert_action, talert_templates and   
        tplanned_downtime to be able to segregate all pandora functions for
        different groups/users. Need to implement in interface code.

        * extras/pandoradb_migrate_v2.x_to_v3.0.sql: Updated migration script 
        for latest SQL changes.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1985 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-09-28 10:40:52 +00:00
parent f4d5f7c61f
commit 690cf5e4e3
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2009-09-28 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Added id_group to talert_action, talert_templates and
tplanned_downtime to be able to segregate all pandora functions for
different groups/users. Need to implement in interface code.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Updated migration script
for latest SQL changes.
2009-09-28 Sancho Lerena <slerena@artica.es>
* godmode/agentes/module_manager_editor_common.php: Postprocess field

View File

@ -294,4 +294,6 @@ ALTER TABLE tagente DROP id_prediction_server;
ALTER TABLE tgraph ADD `id_group` mediumint(8) unsigned NULL default 0;
ALTER TABLE talert_templates ADD `id_group` mediumint(8) unsigned NULL default 0;
ALTER TABLE talert_actions ADD `id_group` mediumint(8) unsigned NULL default 0;
ALTER TABLE tplanned_downtime ADD `id_group` mediumint(8) unsigned NULL default 0;

View File

@ -214,6 +214,7 @@ CREATE TABLE IF NOT EXISTS `talert_actions` (
`field1` varchar(255) NOT NULL default '',
`field2` varchar(255) default '',
`field3` varchar(255) default '',
`id_group` mediumint(8) unsigned NULL default 0,
PRIMARY KEY (`id`),
FOREIGN KEY (`id_alert_command`) REFERENCES talert_commands(`id`)
ON DELETE CASCADE ON UPDATE CASCADE
@ -248,6 +249,7 @@ CREATE TABLE IF NOT EXISTS `talert_templates` (
`field2_recovery` varchar(255) NOT NULL default '',
`field3_recovery` mediumtext NOT NULL,
`priority` tinyint(4) default '0',
`id_group` mediumint(8) unsigned NULL default 0,
PRIMARY KEY (`id`),
FOREIGN KEY (`id_alert_action`) REFERENCES talert_actions(`id`)
ON DELETE SET NULL ON UPDATE CASCADE
@ -838,6 +840,7 @@ CREATE TABLE IF NOT EXISTS `tplanned_downtime` (
`date_from` bigint(20) NOT NULL default '0',
`date_to` bigint(20) NOT NULL default '0',
`executed` tinyint(1) UNSIGNED NOT NULL default 0,
`id_group` mediumint(8) unsigned NULL default 0,
PRIMARY KEY ( `id` )
) ENGINE = InnoDB DEFAULT CHARSET=utf8;