You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ch...@apache.org on 2013/05/08 18:45:14 UTC

git commit: updated refs/heads/4.1 to e85c0a9

Updated Branches:
  refs/heads/4.1 95de7ea69 -> e85c0a965


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 <ch...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e85c0a96
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e85c0a96
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e85c0a96

Branch: refs/heads/4.1
Commit: e85c0a965a18908343a6b7206a36abe201db12a8
Parents: 95de7ea
Author: Wei Zhou <w....@leaseweb.com>
Authored: Wed May 8 17:44:46 2013 +0100
Committer: Chip Childers <ch...@gmail.com>
Committed: Wed May 8 17:44:46 2013 +0100

----------------------------------------------------------------------
 setup/db/db/schema-2214to30.sql |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e85c0a96/setup/db/db/schema-2214to30.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-2214to30.sql b/setup/db/db/schema-2214to30.sql
index 60eceea..e288b0f 100755
--- a/setup/db/db/schema-2214to30.sql
+++ b/setup/db/db/schema-2214to30.sql
@@ -664,6 +664,7 @@ ALTER TABLE `cloud`.`dc_storage_network_ip_range` ADD COLUMN `gateway` varchar(1
 
 ALTER TABLE `cloud`.`volumes` ADD COLUMN `last_pool_id` bigint unsigned;
 UPDATE `cloud`.`volumes` SET `last_pool_id` = `pool_id`;
+UPDATE `cloud`.`volumes` SET `path` = SUBSTRING_INDEX(`path`, '/', -1);
 
 ALTER TABLE `cloud`.`user_ip_address` ADD COLUMN `is_system` int(1) unsigned NOT NULL default '0';
 ALTER TABLE `cloud`.`volumes` ADD COLUMN `update_count` bigint unsigned NOT NULL DEFAULT 0;