updating the script
authorChris Sharp <csharp@georgialibraries.org>
Tue, 1 Nov 2011 17:37:18 +0000 (13:37 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 28 Nov 2011 19:37:37 +0000 (14:37 -0500)
Open-ILS/src/sql/Pg/pines-1.6-2.1-upgrade.sh [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/pines-1.6-2.1-upgrade.sh b/Open-ILS/src/sql/Pg/pines-1.6-2.1-upgrade.sh
new file mode 100644 (file)
index 0000000..9dab966
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# Copyright (C) 2011 Georgia Public Library Service
+# Chris Sharp <csharp@georgialibraries.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+
+# before running, create the evergreen user and evergreen database; 
+# as the postgres OS user:
+# createuser -s -P evergreen
+# 
+
+PGUSER=evergreen
+
+# tell syslog that we're beginning the process
+echo "Beginning the 1.6.1-2.1 upgrade script"
+logger Beginning the 1.6.1-2.1 upgrade script.
+
+# Run the pre-1.6.1-2.1 upgrade script to restore the auditor schema as of 1.6.1.8
+# and drop a couple of custom reporter views to be restored after the upgrade
+
+time /usr/bin/psql -f /root/pines/Open-ILS/src/sql/Pg/pines-pre-1.6.1-2.1-upgrade.sql
+logger pines-pre-1.6.1-2.1-upgrade.sql script complete
+
+# Run the 1.6.1-2.0 upgrade script
+
+time /usr/bin/psql -f /root/pines/OpenILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
+logger 1.6.1-2.0-upgrade-db.sql script complete