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

* pandoradb.sql
	  extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql
	  extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql
	  extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Added delete cascade
	in tplanned_dowtime_agents.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5443 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-01-27 13:28:34 +00:00
parent 7d4ef21f26
commit cfa50dbcdc
5 changed files with 37 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2012-01-27 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.sql
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql: Added delete cascade
in tplanned_dowtime_agents.
2012-01-27 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/graphs/functions_fsgraph.php: Improved units in flash

View File

@ -84,3 +84,11 @@ CREATE TABLE IF NOT EXISTS `talert_special_days` (
-- -----------------------------------------------------
ALTER TABLE `talert_templates` ADD COLUMN `special_day` tinyint(1) DEFAULT '0';
-- -----------------------------------------------------
-- Table `tplanned_downtime_agents`
-- -----------------------------------------------------
ALTER TABLE tplanned_downtime_agents
ADD FOREIGN KEY(`id_downtime`) REFERENCES tplanned_downtime(`id`)
ON DELETE CASCADE;

View File

@ -88,3 +88,13 @@ CREATE OR REPLACE TRIGGER talert_special_days_inc BEFORE INSERT ON talert_specia
-- -----------------------------------------------------
alter table talert_templates add (special_day NUMBER(5,0) default 0);
-- -----------------------------------------------------
-- Table `tplanned_downtime_agents`
-- -----------------------------------------------------
alter table tplanned_downtime_agents
add constraint tplanned_downtimes_foreign_key
foreign key (id_downtime)
references tplanned_downtime (id);

View File

@ -74,3 +74,13 @@ CREATE TABLE "talert_special_days" (
-- -----------------------------------------------------
ALTER TABLE "talert_templates" ADD COLUMN "special_day" SMALLINT default 0;
-- -----------------------------------------------------
-- Table `tplanned_downtime_agents`
-- -----------------------------------------------------
ALTER TABLE "tplanned_downtime_agents"
ADD CONSTRAINT downtime_foreign
FOREIGN KEY("id_downtime")
REFERENCES "tplanned_downtime"("id");

View File

@ -997,7 +997,7 @@ CREATE TABLE IF NOT EXISTS `tplanned_downtime` (
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',
`id_downtime` mediumint(8) NOT NULL default '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`id_downtime`) REFERENCES tplanned_downtime(`id`)
ON DELETE CASCADE