Skip to content

Commit f9b658f

Browse files
committed
CLOUDSTACK-5013:
Add the format for volumes table for uploaded volumes. Since volume_host_ref still exists, using that for populating it Signed off by : nitin mehta<nitin.mehta@citrix.com>
1 parent dc081c9 commit f9b658f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎setup/db/db/schema-420to421.sql‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,9 @@ CREATE VIEW `cloud`.`user_vm_view` AS
215215
left join
216216
`cloud`.`affinity_group` ON affinity_group_vm_map.affinity_group_id = affinity_group.id
217217
left join
218-
`cloud`.`user_vm_details` as all_details ON all_details.vm_id = vm_instance.id;
218+
`cloud`.`user_vm_details` as all_details ON all_details.vm_id = vm_instance.id;
219+
220+
--Add the format for volumes table for uploaded volumes (CLOUDSTACK-5013)
221+
update `cloud`.`volumes` v, `cloud`.`volume_host_ref` vhr set v.format=vhr.format where v.id=vhr.volume_id and v.format is null;
222+
223+

0 commit comments

Comments
 (0)