Bug 30327: DBRev 22.06.00.008
[koha.git] / installer / data / mysql / db_revs / 220600008.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "30327",
5     description => "Add ComponentSortField and ComponentSortOrder sysprefs",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         $dbh->do(q{
10             INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
11             ('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
12             ('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice')
13         });
14         say $out "Added ComponentSortField and ComponentSortOrder sysprefs";
15     },
16 };