mirror of
https://github.com/moodle/moodle.git
synced 2025-07-13 02:16:35 +02:00
Added a new table for logging ADODB requests and a config variable to
turn it on. Very useful for debugging performance issues.
This commit is contained in:
@ -921,6 +921,17 @@ function main_upgrade($oldversion=0) {
|
||||
table_column('user', '', 'dstpreset', 'int', '10', '', '0', 'not null', 'timezone');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005021800) {
|
||||
modify_database("","CREATE TABLE adodb_logsql (
|
||||
created timestamp NOT NULL,
|
||||
sql0 varchar(250) NOT NULL,
|
||||
sql1 text NOT NULL,
|
||||
params text NOT NULL,
|
||||
tracer text NOT NULL,
|
||||
timer decimal(16,6) NOT NULL
|
||||
);");
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user