From 738a4512d3d579efdf4d9c04bbbfcb2c63ce6d78 Mon Sep 17 00:00:00 2001 From: Kevin Pham Date: Fri, 22 Dec 2023 15:33:34 +1100 Subject: [PATCH] fix: logfile move handling fix for upgrade.php --- db/upgrade.php | 4 ++-- version.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/upgrade.php b/db/upgrade.php index 29a56016..1bd380cb 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -289,7 +289,7 @@ function xmldb_tool_dataflows_upgrade($oldversion) { // Move log files that exist across to new format. Breaking change if any // dataflows implement logic based on these files based on filename format. - if ($oldversion < 2023110901) { + if ($oldversion < 2023122201) { $path = '*.log'; $pattern = '/(\d+)-(\d{4})-(\d{2})-(\d{2})/m'; $replace = '$2$3$4_$1'; @@ -301,7 +301,7 @@ function xmldb_tool_dataflows_upgrade($oldversion) { xmldb_tool_dataflows_logfile_rename_helper($path, $pattern, $replace, true); // Dataflows savepoint reached. - upgrade_plugin_savepoint(true, 2023110901, 'tool', 'dataflows'); + upgrade_plugin_savepoint(true, 2023122201, 'tool', 'dataflows'); } return true; diff --git a/version.php b/version.php index af03ce66..8f57d898 100644 --- a/version.php +++ b/version.php @@ -25,8 +25,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023122200; -$plugin->release = 2023122200; +$plugin->version = 2023122201; +$plugin->release = 2023122201; $plugin->requires = 2022112800; // Our lowest supported Moodle (3.3.0). // TODO $plugin->incompatible = ; // Available as of Moodle 3.9.0 or later. $plugin->component = 'tool_dataflows';