Skip to content

Commit 346fe3b

Browse files
committed
upgrade and version update
1 parent 0c66db7 commit 346fe3b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

db/upgrade.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,15 @@ function xmldb_moodleoverflow_upgrade($oldversion) {
292292
upgrade_mod_savepoint(true, 2023040400, 'moodleoverflow');
293293
}
294294

295-
if ($oldversion < 2024061700) {
295+
if ($oldversion < 2024072600) {
296+
require_once($CFG->dirroot . '/mod/moodleoverflow/db/upgradelib.php');
297+
298+
mod_moodleoverflow_move_draftfiles_to_permanent_filearea();
299+
300+
upgrade_mod_savepoint(true, 2024072600, 'moodleoverflow');
301+
}
302+
303+
if ($oldversion < 2025031200) {
296304
// Define table moodleoverflow to be edited.
297305
$table = new xmldb_table('moodleoverflow');
298306

@@ -309,13 +317,5 @@ function xmldb_moodleoverflow_upgrade($oldversion) {
309317
upgrade_mod_savepoint(true, 2024061700, 'moodleoverflow');
310318
}
311319

312-
if ($oldversion < 2024072600) {
313-
require_once($CFG->dirroot . '/mod/moodleoverflow/db/upgradelib.php');
314-
315-
mod_moodleoverflow_move_draftfiles_to_permanent_filearea();
316-
317-
upgrade_mod_savepoint(true, 2024072600, 'moodleoverflow');
318-
}
319-
320320
return true;
321321
}

version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
defined('MOODLE_INTERNAL') || die();
2929

3030
$plugin->component = 'mod_moodleoverflow';
31-
$plugin->version = 2024082700;
31+
$plugin->version = 2025031200;
3232
$plugin->release = 'v4.4-r3';
3333
$plugin->requires = 2022112800; // Requires 4.1+ Moodle version.
3434
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)