From ff93f7ec54862e190017b070c3d186ca298cfdba Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Wed, 28 Dec 2011 10:31:57 -0800 Subject: [PATCH] Fixed db upgrade for security_group_rules table - at the moment when indexes are dropped, the table is already renamed --- setup/db/db/schema-2214to30-cleanup.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/db/db/schema-2214to30-cleanup.sql b/setup/db/db/schema-2214to30-cleanup.sql index 334f7ca4223..e95ecc873fd 100644 --- a/setup/db/db/schema-2214to30-cleanup.sql +++ b/setup/db/db/schema-2214to30-cleanup.sql @@ -6,10 +6,10 @@ ALTER TABLE `cloud_usage`.`usage_network` DROP COLUMN `current_bytes_received`; ALTER TABLE `cloud_usage`.`usage_network` DROP COLUMN `current_bytes_sent`; ALTER TABLE `cloud`.`vm_instance` DROP COLUMN `private_netmask`; -ALTER TABLE `cloud`.`security_ingress_rule` drop foreign key `fk_security_ingress_rule___security_group_id`; -ALTER TABLE `cloud`.`security_ingress_rule` drop foreign key `fk_security_ingress_rule___allowed_network_id`; -ALTER TABLE `cloud`.`security_ingress_rule` drop index `i_security_ingress_rule_network_id`; -ALTER TABLE `cloud`.`security_ingress_rule` drop index `i_security_ingress_rule_allowed_network`; +ALTER TABLE `cloud`.`security_group_rule` drop foreign key `fk_security_ingress_rule___security_group_id`; +ALTER TABLE `cloud`.`security_group_rule` drop foreign key `fk_security_ingress_rule___allowed_network_id`; +ALTER TABLE `cloud`.`security_group_rule` drop index `i_security_ingress_rule_network_id`; +ALTER TABLE `cloud`.`security_group_rule` drop index `i_security_ingress_rule_allowed_network`; ALTER TABLE `cloud`.`host` DROP COLUMN `allocation_state`; ALTER TABLE `cloud`.`data_center` DROP COLUMN `vnet`;