Skip to content

Commit b2be003

Browse files
author
Alena Prokharchyk
committed
Usage db upgrade from 2.2.14 to 3.0 - don't drop the same fields twice from network_usage table
1 parent c33ecde commit b2be003

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎setup/db/db/schema-2214to30.sql‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,6 @@ ALTER TABLE `cloud_usage`.`user_statistics` ADD COLUMN `agg_bytes_sent` bigint u
293293
ALTER TABLE `cloud_usage`.`usage_network` ADD COLUMN `agg_bytes_received` bigint unsigned NOT NULL default '0';
294294
ALTER TABLE `cloud_usage`.`usage_network` ADD COLUMN `agg_bytes_sent` bigint unsigned NOT NULL default '0';
295295
UPDATE `cloud_usage`.`usage_network` set agg_bytes_received = net_bytes_received + current_bytes_received, agg_bytes_sent = net_bytes_sent + current_bytes_sent;
296-
ALTER TABLE `cloud_usage`.`usage_network` DROP COLUMN `net_bytes_received`;
297-
ALTER TABLE `cloud_usage`.`usage_network` DROP COLUMN `current_bytes_received`;
298-
ALTER TABLE `cloud_usage`.`usage_network` DROP COLUMN `net_bytes_sent`;
299-
ALTER TABLE `cloud_usage`.`usage_network` DROP COLUMN `current_bytes_sent`;
300296
DROP TABLE `cloud_usage`.`event`;
301297

302298
ALTER TABLE `cloud_usage`.`usage_vpn_user` ADD INDEX `i_usage_vpn_user__account_id`(`account_id`);

0 commit comments

Comments
 (0)