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

* 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: Fixed error adding delete
	cascade	in tplanned_dowtime_agents.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-01-27 13:52:49 +00:00
parent 529e10377b
commit 4b40062b7e
4 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-01-27 Vanessa Gil <vanessa.gil@artica.es>
* 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: Fixed error adding delete
cascade in tplanned_dowtime_agents.
2012-01-27 Vanessa Gil <vanessa.gil@artica.es>
* pandoradb.sql

View File

@ -88,6 +88,8 @@ ALTER TABLE `talert_templates` ADD COLUMN `special_day` tinyint(1) DEFAULT '0';
-- -----------------------------------------------------
-- Table `tplanned_downtime_agents`
-- -----------------------------------------------------
DELETE FROM tplanned_downtime_agents
WHERE id_downtime NOT IN (SELECT id FROM tplanned_downtime);
ALTER TABLE tplanned_downtime_agents
ADD FOREIGN KEY(`id_downtime`) REFERENCES tplanned_downtime(`id`)

View File

@ -93,6 +93,9 @@ alter table talert_templates add (special_day NUMBER(5,0) default 0);
-- Table `tplanned_downtime_agents`
-- -----------------------------------------------------
DELETE FROM tplanned_downtime_agents
WHERE id_downtime NOT IN (SELECT id FROM tplanned_downtime);
alter table tplanned_downtime_agents
add constraint tplanned_downtimes_foreign_key
foreign key (id_downtime)

View File

@ -78,6 +78,8 @@ ALTER TABLE "talert_templates" ADD COLUMN "special_day" SMALLINT default 0;
-- -----------------------------------------------------
-- Table `tplanned_downtime_agents`
-- -----------------------------------------------------
DELETE FROM "tplanned_downtime_agents"
WHERE "id_downtime" NOT IN (SELECT "id" FROM "tplanned_downtime");
ALTER TABLE "tplanned_downtime_agents"
ADD CONSTRAINT downtime_foreign