From 53581c8fc96fe8881983685b61ed97de1fe26760 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Mon, 22 Oct 2012 22:03:27 +0200 Subject: [PATCH] Add upgrades for 1.1.6. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- upgrade/1.1.6/01_survey_answer.sql | 3 +++ upgrade/1.1.6/README | 2 ++ upgrade/1.1.6/connect.db.inc.php | 1 + upgrade/1.1.6/update.sh | 9 +++++++++ 4 files changed, 15 insertions(+) create mode 100644 upgrade/1.1.6/01_survey_answer.sql create mode 100644 upgrade/1.1.6/README create mode 120000 upgrade/1.1.6/connect.db.inc.php create mode 100755 upgrade/1.1.6/update.sh 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 . -- 2.1.4