Koha/installer/data/mysql/db_revs/240600006.pl
Martin Renvoize 5f81e53108
Bug 35597: (RM follow-up) Modernise DB Update
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2024-06-13 14:08:34 +01:00

19 lines
665 B
Perl
Executable file

use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "35597",
description => "Add SuggestionsLog system preference ",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# sysprefs
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
VALUES ('SuggestionsLog', '0', 'If enabled, log purchase suggestion changes', '' , 'YesNo')
}
) == 1 and say_success( $out, "Added new system preference 'SuggestionsLog'" );
},
};