Tomas Cohen Arazi
34b3becef2
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
16 lines
490 B
Perl
Executable file
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'";
|
|
},
|
|
};
|