mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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:
parent
ba35daa033
commit
8547a4953a
@ -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>
|
2012-01-27 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* include/help/es/help_alert_special_days.php: Added to repository.
|
* include/help/es/help_alert_special_days.php: Added to repository.
|
||||||
|
@ -1142,7 +1142,7 @@ CREATE OR REPLACE TRIGGER tplanned_downtime_inc BEFORE INSERT ON tplanned_downti
|
|||||||
CREATE TABLE tplanned_downtime_agents (
|
CREATE TABLE tplanned_downtime_agents (
|
||||||
id NUMBER(19, 0) NOT NULL PRIMARY KEY,
|
id NUMBER(19, 0) NOT NULL PRIMARY KEY,
|
||||||
id_agent NUMBER(19, 0) default 0 NOT NULL,
|
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;
|
CREATE SEQUENCE tplanned_downtime_agents_s INCREMENT BY 1 START WITH 1;
|
||||||
|
@ -898,7 +898,7 @@ CREATE TABLE "tplanned_downtime" (
|
|||||||
CREATE TABLE "tplanned_downtime_agents" (
|
CREATE TABLE "tplanned_downtime_agents" (
|
||||||
"id" BIGSERIAL NOT NULL PRIMARY KEY,
|
"id" BIGSERIAL NOT NULL PRIMARY KEY,
|
||||||
"id_agent" BIGINT NOT NULL default 0,
|
"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
|
-- GIS extension Tables
|
||||||
|
@ -998,7 +998,9 @@ CREATE TABLE IF NOT EXISTS `tplanned_downtime_agents` (
|
|||||||
`id` int(20) unsigned NOT NULL auto_increment,
|
`id` int(20) unsigned NOT NULL auto_increment,
|
||||||
`id_agent` mediumint(8) unsigned NOT NULL default '0',
|
`id_agent` mediumint(8) unsigned NOT NULL default '0',
|
||||||
`id_downtime` 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;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
-- GIS extension Tables
|
-- GIS extension Tables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user