Add upgrade scripts
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 18 Feb 2013 22:11:33 +0000 (23:11 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 18 Feb 2013 22:11:33 +0000 (23:11 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
upgrade/1.1.7/connect.db.inc.php [new symlink]
upgrade/1.1.7/update.sh [new file with mode: 0755]

diff --git a/upgrade/1.1.7/connect.db.inc.php b/upgrade/1.1.7/connect.db.inc.php
new file mode 120000 (symlink)
index 0000000..442fab7
--- /dev/null
@@ -0,0 +1 @@
+../../bin/connect.db.inc.php
\ No newline at end of file
diff --git a/upgrade/1.1.7/update.sh b/upgrade/1.1.7/update.sh
new file mode 100755 (executable)
index 0000000..9230e34
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+. ../inc/pervasive.sh
+
+###########################################################
+[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat"
+
+confirm "* Running database upgrade scripts"
+mysql_run_directory .