From 0b888d2a736b1b307da7bb412fc4beb151af0173 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Sat, 11 May 2013 17:52:53 +0200
Subject: [PATCH] prepare for moving basepacket foreign key

---
 hsarback/build.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/hsarback/build.xml b/hsarback/build.xml
index 2377ea2..cf8746e 100644
--- a/hsarback/build.xml
+++ b/hsarback/build.xml
@@ -143,6 +143,15 @@
 			src="database/dropschema.sql" />
 	</target>
 	
+	<target name="update-db" description="upgrade existing database">
+		<sql
+			classpath="/usr/share/java/postgresql-jdbc3.jar"
+			driver="org.postgresql.Driver" 
+			url="jdbc:postgresql://${database.host}:5432/${database.name}"
+			userid="${database.user}" password="${database.password}" 
+			src="database/database_update.sql" />
+	</target>
+	
 	<target name="remote-test" description="inspection of xmlrpc-api" depends="compile-test">
 		<mkdir dir="${build.home}/junit" />
 		<junit printsummary="yes" fork="yes">

--
Gitblit v1.9.0-SNAPSHOT