Koha/installer/data/mysql/db_revs/231200043.pl
Tomas Cohen Arazi 34b3becef2
Bug 25159: (QA follow-up) Make DBRev idempotent
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-06 15:04:30 +02:00

16 lines
490 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "25159",
description => "Add action logs should be stored in JSON ( and as a diff of the change )",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( column_exists( 'action_logs', 'diff' ) ) {
$dbh->do(q{ALTER TABLE action_logs ADD COLUMN diff LONGTEXT NULL DEFAULT NULL AFTER trace;});
}
say $out "Added column 'action_logs.diff'";
},
};