mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Turn off time limits with big SQL commands ... some databases are really slow.
This commit is contained in:
parent
dee505a1c0
commit
ca3cf39ee1
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
|||
print_header($strdatabasesetup, $strdatabasesetup, $strdatabasesetup);
|
||||
if (file_exists("$CFG->libdir/db/$CFG->dbtype.sql")) {
|
||||
$db->debug = true;
|
||||
set_time_limit(0); // To allow slow databases to complete the long SQL
|
||||
if (modify_database("$CFG->libdir/db/$CFG->dbtype.sql")) {
|
||||
$db->debug = false;
|
||||
notify($strdatabasesuccess);
|
||||
|
@ -180,6 +181,7 @@
|
|||
}
|
||||
$updated_modules = true;
|
||||
$db->debug = true;
|
||||
set_time_limit(0); // To allow slow databases to complete the long SQL
|
||||
if (modify_database("$fullmod/db/$CFG->dbtype.sql")) {
|
||||
$db->debug = false;
|
||||
if ($module->id = insert_record("modules", $module)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue