From 6ee9dcff441f8afbbafaf14b8c282b0968e3956b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 29 Sep 2021 12:46:54 +0200 Subject: [PATCH] Bug 28826: DBRev 21.06.00.025 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_28826_add_FacetSort_syspref.perl | 9 --------- installer/data/mysql/db_revs/210600025.pl | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl create mode 100755 installer/data/mysql/db_revs/210600025.pl diff --git a/Koha.pm b/Koha.pm index 87a72f9f99..882e4d8879 100644 --- a/Koha.pm +++ b/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; diff --git a/installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl b/installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl deleted file mode 100644 index c69a0f9454..0000000000 --- a/installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl +++ /dev/null @@ -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"); -} diff --git a/installer/data/mysql/db_revs/210600025.pl b/installer/data/mysql/db_revs/210600025.pl new file mode 100755 index 0000000000..9e2933cc5b --- /dev/null +++ b/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') + }); + }, +} -- 2.39.5