mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Bug #5352 - upgrade might be interrupted by user - upgrades are now logged into moddata/upgradelogs/, user abor is ignored and concurrent running of upgrades is prevented from one browser
This commit is contained in:
parent
0c23b59c9b
commit
583fad994c
7 changed files with 173 additions and 10 deletions
|
@ -2263,6 +2263,7 @@ function assignment_upgrade_submodules() {
|
|||
continue;
|
||||
}
|
||||
|
||||
upgrade_log_start();
|
||||
$db->debug=true;
|
||||
if (!modify_database($fullpath .'/db/'.$CFG->dbtype.'.sql')) {
|
||||
notify("Error installing tables for submodule '$type'!");
|
||||
|
@ -2289,6 +2290,7 @@ function assignment_upgrade_submodules() {
|
|||
|
||||
$upgrade_function = 'assignment_'.$type.'_upgrade';
|
||||
if (function_exists($upgrade_function)) {
|
||||
upgrade_log_start();
|
||||
$db->debug=true;
|
||||
if ($upgrade_function($CFG->$currentversion)) {
|
||||
$db->debug=false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue