Skip to content

Commit 99d0936

Browse files
ustcweizhouchipchilders
authored andcommitted
CLOUDSTACK-2318: update volumes.path to fix stop/start vm error after
upgrade from 2.2.14 to 3.0.0 Signed-off-by: Chip Childers <chip.childers@gmail.com>
1 parent 44f3f5e commit 99d0936

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ ALTER TABLE `cloud`.`dc_storage_network_ip_range` ADD COLUMN `gateway` varchar(1
664664

665665
ALTER TABLE `cloud`.`volumes` ADD COLUMN `last_pool_id` bigint unsigned;
666666
UPDATE `cloud`.`volumes` SET `last_pool_id` = `pool_id`;
667+
UPDATE `cloud`.`volumes` SET `path` = SUBSTRING_INDEX(`path`, '/', -1);
667668

668669
ALTER TABLE `cloud`.`user_ip_address` ADD COLUMN `is_system` int(1) unsigned NOT NULL default '0';
669670
ALTER TABLE `cloud`.`volumes` ADD COLUMN `update_count` bigint unsigned NOT NULL DEFAULT 0;

0 commit comments

Comments
 (0)