Skip to content

Commit e63b7da

Browse files
Pearl1594DaanHooglandPearl Dsilvaweizhouapacheharikrishna-patnala
authored
Update nw_rate & mc_rate to int unsigned to allow rates > 65Gbps (#13380)
* update column type * Apply suggestion from @DaanHoogland Co-authored-by: dahn <daan@onecht.net> --------- Co-authored-by: Daan Hoogland <daan@onecht.net> Co-authored-by: Pearl Dsilva <pearl1954@gmail.com> Co-authored-by: Wei Zhou <weizhou@apache.org> Co-authored-by: Harikrishna <harikrishna.patnala@gmail.com>
1 parent 3327e14 commit e63b7da

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

engine/schema/src/main/resources/META-INF/db/schema-42210to42300.sql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,15 @@ CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.gui_themes', 'login_base_domain', 'T
457457
-- Add description for secondary IP addresses
458458
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.nic_secondary_ips', 'description', 'VARCHAR(2048) DEFAULT NULL');
459459

460+
--- Change nw_rate and mc_rate column types from smallint unsigned to int unsigned to support larger rate values
461+
ALTER TABLE `cloud`.`service_offering`
462+
MODIFY COLUMN `nw_rate` int unsigned DEFAULT 200 COMMENT 'network rate throttle mbits/s',
463+
MODIFY COLUMN `mc_rate` int unsigned DEFAULT 10 COMMENT 'mcast rate throttle mbits/s';
464+
465+
ALTER TABLE `cloud`.`network_offerings`
466+
MODIFY COLUMN `nw_rate` int unsigned COMMENT 'network rate throttle mbits/s',
467+
MODIFY COLUMN `mc_rate` int unsigned COMMENT 'mcast rate throttle mbits/s';
468+
460469
-- Soft delete port forwarding, load balancing and firewall rules
461470
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.firewall_rules', 'removed', 'datetime DEFAULT NULL');
462471
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.load_balancer_vm_map', 'removed', 'datetime DEFAULT NULL');

0 commit comments

Comments
 (0)