Bug 33217: DB update
[koha.git] / installer / data / mysql / atomicupdate / bug_33217.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => "33217",
5     description => "Add option to specify sorting for author links",
6     up          => sub {
7         my ($args) = @_;
8         my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10         # Do you stuffs here
11         $dbh->do(
12             q{
13             INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
14             ('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'),
15             ('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice')
16         }
17         );
18         say $out "Added new system preferences 'AuthorLinkSortBy' 'AuthorLinkSortOrder'";
19     },
20 };