From 1a41fb3e4b81b156b7debd7de48a7c9212e52e49 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 7 May 2021 11:46:52 +0000 Subject: [PATCH] Bug 21249: DBRev 20.12.00.045 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_21249-SearchLimitLibrary_syspref.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_21249-SearchLimitLibrary_syspref.perl diff --git a/Koha.pm b/Koha.pm index a5acf9adf5..0e3b99c769 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.12.00.044"; +$VERSION = "20.12.00.045"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_21249-SearchLimitLibrary_syspref.perl b/installer/data/mysql/atomicupdate/bug_21249-SearchLimitLibrary_syspref.perl deleted file mode 100644 index 93519631de..0000000000 --- a/installer/data/mysql/atomicupdate/bug_21249-SearchLimitLibrary_syspref.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('SearchLimitLibrary', 'both', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice')}); - - NewVersion( $DBversion, 21249, "Adding SearchLimitLibrary system preference" ); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index bb438f901f..c3dff43525 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -24189,6 +24189,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 28244, "Fix Ukrainian typo in English"); } +$DBversion = '20.12.00.045'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('SearchLimitLibrary', 'both', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice') + }); + + NewVersion( $DBversion, 21249, "Adding new system preference SearchLimitLibrary" ); +} + # 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