Skip to content

Commit 70b5a72

Browse files
author
kishan
committed
2.2beta4 to GA upgrade changes
1 parent ebc366c commit 70b5a72

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup/db/22beta4to22GA.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ ALTER TABLE `cloud_usage`.`usage_network` drop PRIMARY KEY;
8787
ALTER TABLE `cloud_usage`.`usage_network` add PRIMARY KEY (`account_id`, `zone_id`, `host_id`, `event_time_millis`);
8888

8989
ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `id` bigint unsigned NOT NULL;
90-
ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `is_source_nat` smallint(1) NOT NULL;
90+
ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `is_source_nat` smallint(1) NOT NULL default 0;
91+
92+
update `cloud`.`usage_event` SET size = 0 where type = 'NET.IPASSIGN' and size is null;
93+
update `cloud_usage`.`usage_event` SET size = 0 where type = 'NET.IPASSIGN' and size is null;
9194

9295
ALTER TABLE `cloud_usage`.`cloud_usage` ADD COLUMN `type` varchar(32);
9396

0 commit comments

Comments
 (0)