From 6a55ca6a82a662966e47921e13029a91152fbefd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Aug 2020 11:36:33 +0200 Subject: [PATCH] Bug 25871: DBRev 20.06.00.021 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_25871_Update_OpacItemLocation_preference.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_25871_Update_OpacItemLocation_preference.perl diff --git a/Koha.pm b/Koha.pm index 719bed6c50..e0cc507ff2 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.06.00.020"; +$VERSION = "20.06.00.021"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_25871_Update_OpacItemLocation_preference.perl b/installer/data/mysql/atomicupdate/bug_25871_Update_OpacItemLocation_preference.perl deleted file mode 100644 index fce4245ff7..0000000000 --- a/installer/data/mysql/atomicupdate/bug_25871_Update_OpacItemLocation_preference.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - UPDATE systempreferences SET options = "callnum|ccode|location|library" - WHERE variable = "OpacItemLocation" - }); - NewVersion( $DBversion, 25871, "Add library option to OpacItemLocation"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 76a4ffa3e1..99371e4c6e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22543,6 +22543,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 26070, "Remove references to deprecated Google Transliterate API"); } +$DBversion = '20.06.00.021'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + UPDATE systempreferences SET options = "callnum|ccode|location|library" + WHERE variable = "OpacItemLocation" + }); + NewVersion( $DBversion, 25871, "Add library option to OpacItemLocation"); +} + # 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