Add upgrades for 1.1.6.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Oct 2012 20:03:27 +0000 (22:03 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Oct 2012 20:03:27 +0000 (22:03 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
upgrade/1.1.6/01_survey_answer.sql [new file with mode: 0644]
upgrade/1.1.6/README [new file with mode: 0644]
upgrade/1.1.6/connect.db.inc.php [new symlink]
upgrade/1.1.6/update.sh [new file with mode: 0755]

diff --git a/upgrade/1.1.6/01_survey_answer.sql b/upgrade/1.1.6/01_survey_answer.sql
new file mode 100644 (file)
index 0000000..a600f5e
--- /dev/null
@@ -0,0 +1,3 @@
+ALTER TABLE survey_answers CHANGE COLUMN id id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT;
+
+-- vim:set syntax=mysql:
diff --git a/upgrade/1.1.6/README b/upgrade/1.1.6/README
new file mode 100644 (file)
index 0000000..b382cce
--- /dev/null
@@ -0,0 +1,2 @@
+1. Run all migrations (update.sh)
+2. Profit.
diff --git a/upgrade/1.1.6/connect.db.inc.php b/upgrade/1.1.6/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.6/update.sh b/upgrade/1.1.6/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 .