1) Don't drop netapp tables during the upgrade.

2) SecurityGroups DB upgrade - drop constraints before chaning the name for the network_group table
This commit is contained in:
alena 2011-04-28 13:26:35 -07:00
parent 937989ee37
commit 4a41920ab6
1 changed files with 6 additions and 2 deletions

View File

@ -410,8 +410,12 @@ CREATE TABLE `cloud`.`vpn_users` (
ALTER TABLE `cloud`.`storage_pool` ADD COLUMN `status` varchar(32);
--drop network group related constraints/indexes;
ALTER TABLE `cloud`.`network_group` drop foreign key `fk_network_group__domain_id`;
alter table `cloud`.`network_group` drop index `i_network_group_name`;
ALTER TABLE `cloud`.`network_group` DROP foreign key `fk_network_group__domain_id`;
ALTER TABLE `cloud`.`network_group` DROP INDEX `fk_network_group__domain_id`;
ALTER TABLE `cloud`.`network_group` DROP foreign key `fk_network_group___account_id`;
ALTER TABLE `cloud`.`network_group` DROP INDEX `fk_network_group___account_id`;;
ALTER TABLE `cloud`.`network_group` drop index `i_network_group_name`;
ALTER TABLE `cloud`.`network_ingress_rule` drop foreign key `fk_network_ingress_rule___network_group_id`;
ALTER TABLE `cloud`.`network_ingress_rule` drop foreign key `fk_network_ingress_rule___allowed_network_id`;