Koha/installer/data/mysql/db_revs/230600001.pl
Tomas Cohen Arazi afd7b89094
Bug 33697: DBRev 23.06.00.001
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-05 15:36:11 -03:00

16 lines
533 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33697",
description => "Remove RecordedBooks (rbdigital) integration",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
for my $pref_name ( qw( RecordedBooksClientSecret RecordedBooksDomain RecordedBooksLibraryID ) ) {
$dbh->do(q{
DELETE FROM systempreferences
WHERE variable=?
}, undef, $pref_name) == 1 && say $out "Removed system preference '$pref_name'";
}
},
};