From e490a0860e27ddba944f23873af6451c2baf862b Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Fri, 8 Oct 2021 09:32:21 -0400 Subject: [PATCH] Bug 28826: DBRev 20.11.10.001 Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- .../atomicupdate/bug_28826_add_FacetSort_syspref.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl diff --git a/Koha.pm b/Koha.pm index 092a0f755f..9d4128390a 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 = "20.11.10.000"; +$VERSION = "20.11.10.001"; 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/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6eb2b6fcbc..7a2bd0588d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23692,6 +23692,16 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, "", "Koha 20.11.10 release" ); } +$DBversion = '20.11.10.001'; +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"); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.5