From 1ffcc8a6ecca9ede0bb01eec3469cea8d6f7b26e Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 25 Jan 2019 19:56:16 +1300 Subject: [PATCH] Fix #359 - increase number of allowed status items in the logs. This is still a bit fragile, but with over 10 times the existing number it should be enough for now. --- db/install.xml | 5 +++-- db/upgrade.php | 14 ++++++++++++++ version.php | 4 ++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/db/install.xml b/db/install.xml index e83a161..b7a3cc5 100644 --- a/db/install.xml +++ b/db/install.xml @@ -1,5 +1,6 @@ + - @@ -65,7 +66,7 @@ - + diff --git a/db/upgrade.php b/db/upgrade.php index a64bf69..0259638 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -513,5 +513,19 @@ function xmldb_attendance_upgrade($oldversion=0) { upgrade_mod_savepoint(true, 2017112007, 'attendance'); } + if ($oldversion < 2017112008) { + + // Changing precision of field statusset on table attendance_log to (1333). + $table = new xmldb_table('attendance_log'); + $field = new xmldb_field('statusset', XMLDB_TYPE_CHAR, '1333', null, null, null, null, 'statusid'); + + // Launch change of precision for field statusset. + $dbman->change_field_precision($table, $field); + + // Attendance savepoint reached. + upgrade_mod_savepoint(true, 2017112008, 'attendance'); + } + + return $result; } diff --git a/version.php b/version.php index e8eb89b..5c079fe 100644 --- a/version.php +++ b/version.php @@ -23,9 +23,9 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2017112007; +$plugin->version = 2017112008; $plugin->requires = 2017102700; // Requires 3.4. -$plugin->release = '3.4.4'; +$plugin->release = '3.4.5'; $plugin->maturity = MATURITY_STABLE; $plugin->cron = 0; $plugin->component = 'mod_attendance';