[med-svn] r16065 - in trunk/packages/gnuhealth/trunk/debian: . database-scripts/upgrade/pgsql

Emilien Klein e2jk-guest at moszumanska.debian.org
Tue Feb 18 22:06:49 UTC 2014


Author: e2jk-guest
Date: 2014-02-18 22:06:49 +0000 (Tue, 18 Feb 2014)
New Revision: 16065

Added:
   trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.4.0
Modified:
   trunk/packages/gnuhealth/trunk/debian/changelog
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install
Log:
Use upgrade script provided by upstream for 2.4


Modified: trunk/packages/gnuhealth/trunk/debian/changelog
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/changelog	2014-02-18 22:02:10 UTC (rev 16064)
+++ trunk/packages/gnuhealth/trunk/debian/changelog	2014-02-18 22:06:49 UTC (rev 16065)
@@ -3,6 +3,7 @@
   * New upstream release
   * Move the dbconfig-common upgrade script to the correct place
     (DBTYPE/VERSION instead of just DBTYPE)
+  * Use upgrade script provided by upstream for 2.4
   * Create gnuhealth-server.preinst, and overhaul of the upgrade process.
     Now the database gets backed up by preinst, and updated by postinst.
     If upstream-provided upgrade scripts need to be run, that is handled

Added: trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.4.0
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.4.0	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/database-scripts/upgrade/pgsql/2.4.0	2014-02-18 22:06:49 UTC (rev 16065)
@@ -0,0 +1,18 @@
+#!/bin/sh
+# database upgrade script for gnuhealth-server 2.4
+
+set -e
+
+# Source the config file from dbconfig-common
+. /etc/dbconfig-common/gnuhealth-server.conf
+
+echo "Applying upgrade script for version 2.4"
+
+# A backup of the database was already created by gnuhealth-server.preinst
+
+# Run the remove_test_module.sql script provided by upstream
+#sudo -u ${dbc_dbuser} psql ${dbc_dbname} < /usr/share/gnuhealth/scripts/upgrade/2.0/remove_test_module.sql
+
+# Upgrading the database will be done by gnuhealth-server.postinst
+
+exit 0

Modified: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install	2014-02-18 22:02:10 UTC (rev 16064)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.install	2014-02-18 22:06:49 UTC (rev 16065)
@@ -2,4 +2,4 @@
 debian/database-scripts/install usr/share/dbconfig-common/scripts/gnuhealth-server
 debian/database-scripts/upgrade usr/share/dbconfig-common/scripts/gnuhealth-server
 scripts/upgrade/2.0/pre.py usr/share/gnuhealth/scripts/upgrade/2.0
-
+scripts/upgrade/2.4/remove_test_module.sql usr/share/gnuhealth/scripts/upgrade/2.4




More information about the debian-med-commit mailing list