Change in ovirt-engine[master]: core: add ability to run shell upgrade steps

emesika at redhat.com emesika at redhat.com
Tue Aug 7 08:13:34 UTC 2012


Eli Mesika has submitted this change and it was merged.

Change subject: core: add ability to run shell upgrade steps
......................................................................


core: add ability to run shell upgrade steps

Up to now, we were able to run only SQL files in upgrade pre_upgrade and
post_upgrade.
This patch adds the ability to add shell scripts as upgrade steps or as
part of the pre/post upgrade.
Shell script files preserve the same naming conventions as regular SQL
upgrade scripts (extension is .sh) and are recorded in the same way to the
schema_version table.

This patch is mandatory to some bugs that requires upgrading the
database via a shell script.

Change-Id: Ia3a88c21c97ebdd9bd35c2b0da87cba1cbde54c7
Signed-off-by: Eli Mesika <emesika at redhat.com>
---
M backend/manager/dbscripts/dbfunctions.sh
1 file changed, 30 insertions(+), 9 deletions(-)

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


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3a88c21c97ebdd9bd35c2b0da87cba1cbde54c7
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini 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