Bug 26247: (follow-up) Fix permissions
[koha.git] / installer / data / mysql / db_revs / 220600026.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "30984",
5     description => "Log the cron script that generated an action log if there is one",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         if( !column_exists( 'action_logs', 'script' ) ) {
10             $dbh->do(q{
11                 ALTER TABLE action_logs
12                 ADD COLUMN script varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the name of the cron script that caused this change'
13                 AFTER interface
14             });
15         }
16     },
17 };