Bug 30226: (QA follow-up) Sync atomicupdate with sysprefs.sql
[koha.git] / installer / data / mysql / atomicupdate / bug_30226.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "30226",
5     description => "Add the system preference AllowSetAutomaticRenewal",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         # Add system preference AllowSetAutomaticRenewal
10         $dbh->do(q{
11             INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES('AllowSetAutomaticRenewal', '1', NULL, 'If ON, allows staff to flag items for automatic renewal on the check out page', 'YesNo')
12         });
13         # Finished adding system preference AllowSetAutomaticRenewal
14         say $out "Added system preference AllowSetAutomaticRenewal";
15     },
16 };