Change in ovirt-engine[master]: core: DB - check if contraint exists before...

emesika at redhat.com emesika at redhat.com
Mon Jan 7 09:44:34 UTC 2013


Eli Mesika has submitted this change and it was merged.

Change subject: core: DB - check if contraint exists before...
......................................................................


core: DB - check if contraint exists before...

DB - check if constraint exists before attempting to drop it.

Check in the upgrade script that constraint exists before attempting to
drop it.
Since this fix must run also for Postgres 8.4.x we can not simply use
the 'IF EXISTS' clause for that constraint since that is supported only
from Postgres 9.x

Change-Id: I8356df36a53f06751779f7e221bdcf4b1dfa9de7
Signed-off-by: Eli Mesika <emesika at redhat.com>
---
M backend/manager/dbscripts/upgrade/03_01_0100_migrate_templates_to_vm_static.sql
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8356df36a53f06751779f7e221bdcf4b1dfa9de7
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list