Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Sep 20, 2024
1 parent a9e673a commit a7568af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ function xmldb_local_adler_upgrade($oldversion): bool {
// $dbman = $DB->get_manager(); // Loads ddl manager and xmldb classes.

if ($oldversion < 2024090900) {
$success = true;
try {
$courses = get_courses('all');
foreach ($courses as $course) {
if ($course->id == 1) {
Expand All @@ -26,13 +24,9 @@ function xmldb_local_adler_upgrade($oldversion): bool {
// Do nothing
}
}
} catch (moodle_exception $e) {
$success = false;
// throw $e;
}

// Logging the upgrade.
upgrade_plugin_savepoint($success, 2024090900, 'local', 'adler');
upgrade_plugin_savepoint(true, 2024090900, 'local', 'adler');

}

Expand Down

0 comments on commit a7568af

Please sign in to comment.