From 49a795ceb3273627c9f3ec8edd95f709ef7ebce9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Apr 2021 14:07:07 +0000 Subject: [PATCH] Bug 21260: DBRev 20.12.00.031 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug21260.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug21260.perl diff --git a/Koha.pm b/Koha.pm index 924875d25d..e3205798ed 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.030"; +$VERSION = "20.12.00.031"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug21260.perl b/installer/data/mysql/atomicupdate/bug21260.perl deleted file mode 100644 index 46050dca65..0000000000 --- a/installer/data/mysql/atomicupdate/bug21260.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) - VALUES ('Reference_NFL_Statuses','1|2',NULL,'Contains not for loan statuses considered as available for reference','Free') - }); - NewVersion( $DBversion, 21260, "Add preference Reference_NFL_Statuses"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4e9f3202ce..9fcbabd8b2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23807,6 +23807,16 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 21549, "Add new system preference LockExpiredDelay"); } +$DBversion = '20.12.00.031'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) + VALUES ('Reference_NFL_Statuses','1|2',NULL,'Contains not for loan statuses considered as available for reference','Free') + }); + + NewVersion( $DBversion, 21260, "Add new system preference Reference_NFL_Statuses"); +} + # 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