From ec714bc6cecc6c9fd3be2216288974d4f71591e2 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 9 Sep 2020 21:50:43 +1200 Subject: [PATCH] Bug 25958: DBRev 19.11.09.001 Signed-off-by: Aleisha Amohia --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_25958.perl | 10 ---------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_25958.perl diff --git a/Koha.pm b/Koha.pm index baf92bbc4b..73106d5f7b 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 = "19.11.09.000"; +$VERSION = "19.11.09.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_25958.perl b/installer/data/mysql/atomicupdate/bug_25958.perl deleted file mode 100644 index 961fc6987d..0000000000 --- a/installer/data/mysql/atomicupdate/bug_25958.perl +++ /dev/null @@ -1,10 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('DefaultLongOverdueSkipLostStatuses', '', NULL, 'Skip these lost statuses by default in longoverdue.pl', 'Free') - }); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 25958 - Allow LongOverdue cron to exclude specified lost values)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a59948e110..3fcfbd53d8 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20669,6 +20669,17 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "19.11.09.001"; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('DefaultLongOverdueSkipLostStatuses', '', NULL, 'Skip these lost statuses by default in longoverdue.pl', 'Free') + }); + + print "Upgrade to $DBversion done (Bug 25958 - Allow LongOverdue cron to exclude specified lost values)\n"; + SetVersion( $DBversion ); +} + # 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.11.4.GIT