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:
parent
529e10377b
commit
4b40062b7e
|
@ -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
|
||||
|
|
|
@ -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`)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue