Fix foreign key "fk_domain_router__element_id" in the upgrade

This commit is contained in:
Sheng Yang 2012-04-11 16:48:13 -07:00
parent d91fbab9cf
commit 6c9fd606ab

View File

@ -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`);