Skip to content

Commit 4fb69e6

Browse files
authored
sql: Fix Zones are returned in a random order (#3934) (#4494)
1 parent e9ce381 commit 4fb69e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/schema/src/main/resources/META-INF/db/schema-41400to41500.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,3 +837,6 @@ UPDATE `cloud`.`guest_os` SET category_id = 7 WHERE id = 275 AND display_name =
837837
-- Add flag 'hidden' in tables usage_ip_address and cloud_usage
838838
ALTER TABLE `cloud_usage`.`usage_ip_address` ADD COLUMN `is_hidden` smallint(1) NOT NULL DEFAULT '0' COMMENT 'is usage hidden';
839839
ALTER TABLE `cloud_usage`.`cloud_usage` ADD COLUMN `is_hidden` smallint(1) NOT NULL DEFAULT '0' COMMENT 'is usage hidden';
840+
841+
-- Fix Zones are returned in a random order (#3934)
842+
UPDATE `cloud`.`data_center` JOIN (SELECT COUNT(1) AS count FROM `cloud`.`data_center` WHERE `sort_key` != 0) AS tbl_tmp SET `sort_key` = `id` WHERE count = 0;

0 commit comments

Comments
 (0)