From 2fa66bdf710689684425037a5ef905e1eec5d609 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 22 Jun 2011 18:46:15 +0100 Subject: [PATCH] MDL-27929 question_attempts.minfraction should be signed! --- lib/db/install.xml | 2 +- lib/db/upgrade.php | 13 +++++++++++++ version.php | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/db/install.xml b/lib/db/install.xml index 98800d60752..05d99f8e6dd 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -1351,7 +1351,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 9f68acdf39b..a8bd913e2ac 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -6545,6 +6545,19 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); upgrade_main_savepoint(true, 2011060800.01); } + if ($oldversion < 2011062000.01) { + // Changing sign of field minfraction on table question_attempts to signed + $table = new xmldb_table('question_attempts'); + $field = new xmldb_field('minfraction', XMLDB_TYPE_NUMBER, '12, 7', null, + XMLDB_NOTNULL, null, null, 'maxmark'); + + // Launch change of sign for field minfraction + $dbman->change_field_unsigned($table, $field); + + // Main savepoint reached + upgrade_main_savepoint(true, 2011062000.01); + } + return true; } diff --git a/version.php b/version.php index 15bc3637afd..f51b5d2e9bc 100644 --- a/version.php +++ b/version.php @@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2011062000.00; // YYYYMMDD = weekly release date of this DEV branch +$version = 2011062000.01; // YYYYMMDD = weekly release date of this DEV branch // RR = release increments - 00 in DEV branches // .XX = incremental changes