Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
900 B

use Modern::Perl;
return {
bug_number => "32057",
description => "Bug 32057 - Add optional stack trace to action logs",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if ( !column_exists( 'action_logs', 'trace' ) ) {
$dbh->do(q{
ALTER TABLE action_logs
ADD COLUMN `trace` TEXT DEFAULT NULL COMMENT 'An optional stack trace enabled by ActionLogsTraceDepth' AFTER `script`
});
say $out "Added column 'action_logs.trace'";
}
$dbh->do(q{
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('ActionLogsTraceDepth', '0', '', 'Sets the maximum depth of the action logs stack trace', 'Integer')
});
say $out "Added new system preference 'ActionLogsTraceDepth'";
},
};