Koha/installer/data/mysql/db_revs/220600026.pl
Tomas Cohen Arazi 8bba933d48
Bug 30984: DBRev 22.06.00.026
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-01 09:26:59 -03:00

17 lines
569 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "30984",
description => "Log the cron script that generated an action log if there is one",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'action_logs', 'script' ) ) {
$dbh->do(q{
ALTER TABLE action_logs
ADD COLUMN script varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the name of the cron script that caused this change'
AFTER interface
});
}
},
};