Skip to content

Commit 8d37885

Browse files
committed
get newest folders of subplugins before deleting them in upgrade job
1 parent 6c9eed6 commit 8d37885

File tree

26 files changed

+48
-32
lines changed

26 files changed

+48
-32
lines changed

db/upgrade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

25-
use \tool_lifecycle\local\manager\workflow_manager;
25+
use tool_lifecycle\local\manager\workflow_manager;
2626

2727
/**
2828
* Fix any gaps in the workflows sortindex.
@@ -500,7 +500,7 @@ function xmldb_tool_lifecycle_upgrade($oldversion) {
500500

501501
}
502502

503-
if ($oldversion < 2025041200) {
503+
if ($oldversion < 2025041400) {
504504

505505
// Changing precision of field instancename on table tool_lifecycle_trigger to (100).
506506
$table = new xmldb_table('tool_lifecycle_trigger');
@@ -595,7 +595,7 @@ function xmldb_tool_lifecycle_upgrade($oldversion) {
595595
purge_all_caches();
596596
}
597597

598-
upgrade_plugin_savepoint(true, 2025041200, 'tool', 'lifecycle');
598+
upgrade_plugin_savepoint(true, 2025041400, 'tool', 'lifecycle');
599599

600600
}
601601

step/adminapprove/db/upgrade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function xmldb_lifecyclestep_adminapprove_upgrade($oldversion) {
3737

3838
global $DB;
3939
$dbman = $DB->get_manager();
40-
if ($oldversion < 2025041200) {
40+
if ($oldversion < 2025041400) {
4141

4242
// Define table lifecyclestep_adminapprove to be created.
4343
$table = new xmldb_table('lifecyclestep_adminapprove');
@@ -57,7 +57,7 @@ function xmldb_lifecyclestep_adminapprove_upgrade($oldversion) {
5757
}
5858

5959
// Adminapprove savepoint reached.
60-
upgrade_plugin_savepoint(true, 2025041200, 'lifecyclestep', 'adminapprove');
60+
upgrade_plugin_savepoint(true, 2025041400, 'lifecyclestep', 'adminapprove');
6161
}
6262
return true;
6363
}

step/adminapprove/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2025041200;
27+
$plugin->version = 2025041400;
2828
$plugin->component = 'lifecyclestep_adminapprove';
2929
$plugin->dependencies = [
30-
'tool_lifecycle' => 2025041200,
30+
'tool_lifecycle' => 2025041400,
3131
];
3232
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
3333
$plugin->release = 'v4.5-r1';

step/createbackup/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2025041200;
27+
$plugin->version = 2025041400;
2828
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
2929
$plugin->component = 'lifecyclestep_createbackup';
3030
$plugin->release = 'v4.5-r1';

step/deletecourse/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2025041200;
27+
$plugin->version = 2025041400;
2828
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
2929
$plugin->component = 'lifecyclestep_deletecourse';
3030
$plugin->release = 'v4.5-r1';

step/duplicate/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2025041200;
27+
$plugin->version = 2025041400;
2828
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
2929
$plugin->component = 'lifecyclestep_duplicate';
3030
$plugin->release = 'v4.5-r1';

step/email/db/upgrade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function xmldb_lifecyclestep_email_upgrade($oldversion) {
3737

3838
global $DB;
3939
$dbman = $DB->get_manager();
40-
if ($oldversion < 2025041200) {
40+
if ($oldversion < 2025041400) {
4141
$table = new xmldb_table('lifecyclestep_email_notified');
4242

4343
// Adding fields to table lifecyclestep_email_notified.
@@ -57,7 +57,7 @@ function xmldb_lifecyclestep_email_upgrade($oldversion) {
5757
}
5858

5959
// Lifecycle savepoint reached.
60-
upgrade_plugin_savepoint(true, 2025041200, 'lifecyclestep', 'email');
60+
upgrade_plugin_savepoint(true, 2025041400, 'lifecyclestep', 'email');
6161
}
6262
return true;
6363
}

step/email/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die;
2626

2727

28-
$plugin->version = 2025041200;
28+
$plugin->version = 2025041400;
2929
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
3030
$plugin->component = 'lifecyclestep_email';
3131
$plugin->release = 'v4.5-r1';

step/makeinvisible/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2025041200;
27+
$plugin->version = 2025041400;
2828
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
2929
$plugin->component = 'lifecyclestep_makeinvisible';
3030
$plugin->dependencies = [
31-
'tool_lifecycle' => 2025041200,
31+
'tool_lifecycle' => 2025041400,
3232
];
3333
$plugin->release = 'v4.5-r1';
3434
$plugin->maturity = MATURITY_STABLE;

trigger/byrole/version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
defined('MOODLE_INTERNAL') || die;
2626

27-
$plugin->version = 2025041200;
27+
$plugin->version = 2025041400;
2828
$plugin->requires = 2024100700; // Requires Moodle 4.5+.
2929
$plugin->component = 'lifecycletrigger_byrole';
3030
$plugin->dependencies = [
31-
'tool_lifecycle' => 2025041200,
31+
'tool_lifecycle' => 2025041400,
3232
];
3333
$plugin->release = 'v4.5-r1';
3434
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)