Koha/installer/data/mysql/db_revs/230600018.pl
Tomas Cohen Arazi d1838c23ed
Bug 27378: Fix permissions
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-12 09:48:32 -03:00

20 lines
838 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "27378",
description => "Adds the sysprefs for cookie consents",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q| INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('CookieConsentedJS', '', 'Add Javascript code that will run if cookie consent is provided (e.g. tracking code).', '', 'Free'); |
);
say $out "Added new system preference 'CookieConsentedJS'";
$dbh->do(
q| INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('CookieConsent', '0', 'Require cookie consent to be displayed', '', 'YesNo'); |
);
say $out "Added new system preference 'CookieConsent'";
},
};