Browse Source

Bug 28826: DBRev 21.06.00.025

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.11.x
Jonathan Druart 3 years ago
parent
commit
6ee9dcff44
  1. 2
      Koha.pm
  2. 9
      installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl
  3. 16
      installer/data/mysql/db_revs/210600025.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "21.06.00.024";
$VERSION = "21.06.00.025";
sub version {
return $VERSION;

9
installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl

@ -1,9 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences
( variable, value, options, explanation, type ) VALUES
('FacetOrder','Alphabetical','Alphabetical|Usage','Specify the order of facets within each category','Choice')
});
NewVersion( $DBversion, 28826, "Add system preference FacetOrder");
}

16
installer/data/mysql/db_revs/210600025.pl

@ -0,0 +1,16 @@
use Modern::Perl;
return {
bug_number => "28826",
description => "A system preference FacetOrder",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences
( variable, value, options, explanation, type ) VALUES
('FacetOrder','Alphabetical','Alphabetical|Usage','Specify the order of facets within each category','Choice')
});
},
}
Loading…
Cancel
Save