From 70b5a7224f3c0692dd35487f0d7ad00eaa2a77eb Mon Sep 17 00:00:00 2001 From: kishan Date: Wed, 16 Feb 2011 13:43:42 +0530 Subject: [PATCH] 2.2beta4 to GA upgrade changes --- setup/db/22beta4to22GA.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/db/22beta4to22GA.sql b/setup/db/22beta4to22GA.sql index 1569d9e55a7..87943660977 100644 --- a/setup/db/22beta4to22GA.sql +++ b/setup/db/22beta4to22GA.sql @@ -87,7 +87,10 @@ ALTER TABLE `cloud_usage`.`usage_network` drop PRIMARY KEY; ALTER TABLE `cloud_usage`.`usage_network` add PRIMARY KEY (`account_id`, `zone_id`, `host_id`, `event_time_millis`); ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `id` bigint unsigned NOT NULL; -ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `is_source_nat` smallint(1) NOT NULL; +ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `is_source_nat` smallint(1) NOT NULL default 0; + +update `cloud`.`usage_event` SET size = 0 where type = 'NET.IPASSIGN' and size is null; +update `cloud_usage`.`usage_event` SET size = 0 where type = 'NET.IPASSIGN' and size is null; ALTER TABLE `cloud_usage`.`cloud_usage` ADD COLUMN `type` varchar(32);