2012-01-27 Vanessa Gil <vanessa.gil@artica.es>

* pandoradb.sql
	  pandoradb.oracle.sql
	  pandoradb.postgreSQL.sql: Added delete cascade in tplanned_dowtime_agents.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-01-27 12:30:30 +00:00
parent ba35daa033
commit 8547a4953a
4 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2012-01-27 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.sql
pandoradb.oracle.sql
pandoradb.postgreSQL.sql: Added delete cascade in tplanned_dowtime_agents.
2012-01-27 Ramon Novoa <rnovoa@artica.es>
* include/help/es/help_alert_special_days.php: Added to repository.

View File

@ -1142,7 +1142,7 @@ CREATE OR REPLACE TRIGGER tplanned_downtime_inc BEFORE INSERT ON tplanned_downti
CREATE TABLE tplanned_downtime_agents (
id NUMBER(19, 0) NOT NULL PRIMARY KEY,
id_agent NUMBER(19, 0) default 0 NOT NULL,
id_downtime NUMBER(19, 0) default 0 NOT NULL
id_downtime NUMBER(19, 0) default 0 NOT NULL REFERENCES tplanned_downtime(id) ON DELETE CASCADE
);
CREATE SEQUENCE tplanned_downtime_agents_s INCREMENT BY 1 START WITH 1;

View File

@ -898,7 +898,7 @@ CREATE TABLE "tplanned_downtime" (
CREATE TABLE "tplanned_downtime_agents" (
"id" BIGSERIAL NOT NULL PRIMARY KEY,
"id_agent" BIGINT NOT NULL default 0,
"id_downtime" BIGINT NOT NULL default 0
"id_downtime" BIGINT NOT NULL REFERENCES tplanned_downtime("id") ON DELETE CASCADE
);
-- GIS extension Tables

View File

@ -998,7 +998,9 @@ CREATE TABLE IF NOT EXISTS `tplanned_downtime_agents` (
`id` int(20) unsigned NOT NULL auto_increment,
`id_agent` mediumint(8) unsigned NOT NULL default '0',
`id_downtime` mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
FOREIGN KEY (`id_downtime`) REFERENCES tplanned_downtime(`id`)
ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- GIS extension Tables