Bug 41084: Re-format database update for new way of addind system preferences

... also adds say_success.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Katrin Fischer 2026-07-05 12:27:46 +00:00 committed by Pedro Amorim
parent 5d8af22026
commit 667df54aed
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "41084",
@ -9,11 +10,11 @@ return {
$dbh->do(
q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('EnableZotero','1','','Enable Zotero export functionality','YesNo')
INSERT IGNORE INTO systempreferences (variable,value) VALUES
('EnableZotero','1')
}
);
say $out "Added new system preference 'EnableZotero'";
say_success( $out, "Added new system preference 'EnableZotero'" );
},
};