CLOUDSTACK-3005: fix template_spool_ref.local_patch error after upgrade from 2.2.14 to 3.X
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8b4d8530 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8b4d8530 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8b4d8530 Branch: refs/heads/object_store Commit: 8b4d85309129f9fade7a34c0be946cfe89bd859b Parents: 201c065 Author: Wei Zhou <[email protected]> Authored: Fri Jun 14 10:32:47 2013 +0200 Committer: Wei Zhou <[email protected]> Committed: Fri Jun 14 10:32:47 2013 +0200 ---------------------------------------------------------------------- setup/db/db/schema-2214to30.sql | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8b4d8530/setup/db/db/schema-2214to30.sql ---------------------------------------------------------------------- diff --git a/setup/db/db/schema-2214to30.sql b/setup/db/db/schema-2214to30.sql index e288b0f..326e9a7 100755 --- a/setup/db/db/schema-2214to30.sql +++ b/setup/db/db/schema-2214to30.sql @@ -665,6 +665,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); +UPDATE `cloud`.`template_spool_ref` SET `local_path` = SUBSTRING_INDEX(`local_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;
