From 67999e27d9777cf353c35dbecf03ecae82527d28 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 9 Sep 2009 21:43:56 +1200 Subject: [PATCH] Update the database schema, rather than nuking it and starting again. --- dba/update-database.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dba/update-database.sh b/dba/update-database.sh index fbf99652..d3daa45c 100644 --- a/dba/update-database.sh +++ b/dba/update-database.sh @@ -11,7 +11,7 @@ DBADIR="`dirname \"$0\"`" # FIXME: We shouldn't really apply patches we already have installed, although # it should be safe enough since any patch which is not idempotent should be # denied multiple application through the AWL schema management functions. -for PATCHFILE in "${DBADIR}/patches/patch-*.sql"; do +for PATCHFILE in "${DBADIR}/patches/*.*.*.sql"; do psql -q -f "${PATCHFILE}" "${DBNAME}" done