diff --git a/db/install.xml b/db/install.xml index acbc1cf..066960b 100644 --- a/db/install.xml +++ b/db/install.xml @@ -1,5 +1,6 @@ + - @@ -67,7 +68,7 @@ - + diff --git a/db/upgrade.php b/db/upgrade.php index e5cd407..eefe03f 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -537,5 +537,19 @@ function xmldb_attendance_upgrade($oldversion=0) { upgrade_mod_savepoint(true, 2018082605, 'attendance'); } + if ($oldversion < 2019012500) { + + // 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, 2019012500, 'attendance'); + } + + return $result; } diff --git a/version.php b/version.php index bab416f..f440b62 100644 --- a/version.php +++ b/version.php @@ -23,9 +23,9 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2018102600; +$plugin->version = 2019012500; $plugin->requires = 2018102700; // Requires 3.6. -$plugin->release = '3.6.3'; +$plugin->release = '3.6.4'; $plugin->maturity = MATURITY_STABLE; $plugin->cron = 0; $plugin->component = 'mod_attendance';