Koha/installer/data/mysql/db_revs/231200045.pl
Katrin Fischer 3b2c2b1270
Bug 22740: DBRev 23.12.00.045
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-03 19:31:56 +02:00

27 lines
1.1 KiB
Perl
Executable file

use Modern::Perl;
return {
bug_number => "22740",
description =>
"Preferences to enable automated setting of lost status when the associated fine is paid or written off",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
# sysprefs
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('UpdateItemLostStatusWhenPaid', '0', NULL, 'Allows the status of lost items to be automatically changed when item paid for', 'Integer')
}
);
say $out "Added new system preference 'UpdateItemLostStatusWhenPaid'";
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('UpdateItemLostStatusWhenWriteoff', '0', NULL, 'Allows the status of lost items to be automatically changed when item written off', 'Integer')
}
);
say $out "Added new system preference 'UpdateItemLostStatusWhenWriteoff'";
},
};