Maor Lipchuk has posted comments on this change.

Change subject: core: introducing OvfAutoUpdate
......................................................................


Patch Set 20: (1 inline comment)

....................................................
File backend/manager/dbscripts/upgrade/03_02_0020_add_vm_generation_columns.sql
Line 14:        WHERE vg.storage_pool_id = sp.id AND vm.vds_group_id = 
vg.vds_group_id);
Line 15: 
Line 16: -- Only pre-existing vms should have ovf_generation set to 1, so after 
we added
Line 17: -- the pre existing vms, the default should be 0.
Line 18: SELECT fn_db_change_column_type ('vm_ovf_generations', 
'ovf_generation', 'BIGINT DEFAULT 1','BIGINT DEFAULT 0');
Why play with the table defaults, and not simply write:
 INSERT INTo vm_ovf_generations
      (SELECT vm.vm_guid, sp.id, '1'
       FROM vm_static vm ,storage_pool.....
Line 19: 
Line 20: CREATE INDEX IDX_vm_ovf_generations_vm_guid ON 
vm_ovf_generations(vm_guid);


--
To view, visit http://gerrit.ovirt.org/9328
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I9b5132300fb1f1fd94f771cab15efe5246dbeca8
Gerrit-PatchSet: 20
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: liron aravot <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to