Liron Aravot has uploaded a new change for review.

Change subject: core: align luns volume_group_id
......................................................................

core: align luns volume_group_id

LUNs that were previously persisted using REST might have a null volume group id
while the current value used in the engine is "", this patch fixes it and set it
to "" as well.

Change-Id: Ia3f3055ae1496a4ad5f041933fcabbd1dadee2b1
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=906360
Signed-off-by: Liron Aravot <[email protected]>
---
A backend/manager/dbscripts/upgrade/03_02_0400_align_lun_volume_group_id.sql
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/07/11807/1

diff --git 
a/backend/manager/dbscripts/upgrade/03_02_0400_align_lun_volume_group_id.sql 
b/backend/manager/dbscripts/upgrade/03_02_0400_align_lun_volume_group_id.sql
new file mode 100644
index 0000000..cfd61ff
--- /dev/null
+++ b/backend/manager/dbscripts/upgrade/03_02_0400_align_lun_volume_group_id.sql
@@ -0,0 +1 @@
+UPDATE luns SET volume_group_id = '' WHERE volume_group_id IS NULL;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3f3055ae1496a4ad5f041933fcabbd1dadee2b1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to