Bug 23685: (follow-up) Dbrev for new preferences

Test plan:
Run updatedatabase.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2024-09-06 09:58:18 +00:00 committed by Katrin Fischer
parent 2bf41eb65d
commit 073de2c2ea
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,21 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => "23685",
description => "Add prefs ReportsExportFormatODS and ReportsExportLimit",
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
('ReportsExportFormatODS',1,NULL,'Show ODS download in Reports','YesNo'),
('ReportsExportLimit',NULL,NULL,'Limit for report downloads','Integer');
}
);
say $out "Added new system preferences: ReportsExportFormatODS and ReportsExportLimit";
},
};

View file

@ -655,6 +655,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('RenewalSendNotice','0','',NULL,'YesNo'),
('RenewSerialAddsSuggestion','0',NULL,'If ON, adds a new suggestion at serial subscription renewal','YesNo'),
('RentalFeesCheckoutConfirmation', '0', NULL , 'Allow user to confirm when checking out an item with rental fees.', 'YesNo'),
('ReportsExportFormatODS',1,NULL,'Show ODS download in Reports','YesNo'),
('ReportsExportLimit',NULL,NULL,'Limit for report downloads','Integer'),
('ReplytoDefault','',NULL,'Use this email address as the replyto in emails','Free'),
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
('RequireCashRegister','0',NULL,'Require a cash register when collecting a payment','YesNo'),