Change in ovirt-engine[ovirt-engine-3.5]: db:add tab/col name validation to common functions

tnisan at redhat.com tnisan at redhat.com
Sun Oct 19 08:42:39 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: db:add tab/col name validation to common functions
......................................................................


db:add tab/col name validation to common functions

No error thrown in common_sp functions in case column or table does not
exists.

This patch adds validations to drop/change type/rename column common
functions in order to prevent the setup continue in case that there was
an error in the table/column name.

This patch also fix some upgrade scripts that used invalid/non-existing
column names.

Change-Id: Iba5f087f3d47b4f36bb99151a21c2e1016d77b64
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1141829
Signed-off-by: Eli Mesika <emesika at redhat.com>
---
M packaging/dbscripts/common_sp.sql
M packaging/dbscripts/upgrade/03_03_0060_drop_desktop_device.sql
M packaging/dbscripts/upgrade/03_03_0380_remove_auto_suspend.sql
M packaging/dbscripts/upgrade/03_03_0710_add_profile_to_network_interface.sql
4 files changed, 14 insertions(+), 3 deletions(-)

Approvals:
  Eli Mesika: Verified
  Oved Ourfali: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iba5f087f3d47b4f36bb99151a21c2e1016d77b64
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list