From: Raphaël Barrois Date: Mon, 22 Oct 2012 20:03:27 +0000 (+0200) Subject: Add upgrades for 1.1.6. X-Git-Tag: xorg/1.1.6~21 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=53581c8fc96fe8881983685b61ed97de1fe26760;p=platal.git Add upgrades for 1.1.6. Signed-off-by: Raphaël Barrois --- diff --git a/upgrade/1.1.6/01_survey_answer.sql b/upgrade/1.1.6/01_survey_answer.sql new file mode 100644 index 0000000..a600f5e --- /dev/null +++ b/upgrade/1.1.6/01_survey_answer.sql @@ -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 index 0000000..b382cce --- /dev/null +++ b/upgrade/1.1.6/README @@ -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 index 0000000..442fab7 --- /dev/null +++ b/upgrade/1.1.6/connect.db.inc.php @@ -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 index 0000000..9230e34 --- /dev/null +++ b/upgrade/1.1.6/update.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +. ../inc/pervasive.sh + +########################################################### +[ "$DATABASE" != "x4dat" ] || die "Cannot target x4dat" + +confirm "* Running database upgrade scripts" +mysql_run_directory .