From 2252d6db1cbed08ff23e2ec995579df3ff371ee8 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Wed, 11 Apr 2012 16:48:13 -0700 Subject: [PATCH] Fix foreign key "fk_domain_router__element_id" in the upgrade --- setup/db/db/schema-301to302.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/db/db/schema-301to302.sql b/setup/db/db/schema-301to302.sql index 7f3cd193174..a263d521979 100755 --- a/setup/db/db/schema-301to302.sql +++ b/setup/db/db/schema-301to302.sql @@ -22,3 +22,5 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'manag INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'secstorage.service.offering', NULL, 'Service offering used by secondary storage; if NULL - system offering will be used'); DROP INDEX `i_host__allocation_state` ON `cloud`.`host`; + +ALTER TABLE `cloud`.`domain_router` ADD CONSTRAINT `fk_domain_router__element_id` FOREIGN KEY `fk_domain_router__element_id`(`element_id`) REFERENCES `virtual_router_providers`(`id`);