From edee0266c477c627d9be5f86d09182c042d2607c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 17 Apr 2020 08:24:57 +0100 Subject: [PATCH] Bug 25147: DBRev 19.12.00.074 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_25147.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_25147.perl diff --git a/Koha.pm b/Koha.pm index 496a6ec31b..8c89f5b45d 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.12.00.073"; +$VERSION = "19.12.00.074"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_25147.perl b/installer/data/mysql/atomicupdate/bug_25147.perl deleted file mode 100644 index 9be719a6ab..0000000000 --- a/installer/data/mysql/atomicupdate/bug_25147.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "UPDATE systempreferences SET variable = 'SCOAllowCheckin' WHERE variable = 'AllowSelfCheckReturns'" ); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 25147, "Rename AllowSelfCheckReturns to SCOAllowCheckin for consistency"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 858829e2ab..d3ac242ddf 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -21613,6 +21613,14 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 25152, "Update subscription.closed to tinyint(1) as per guidelines"); } +$DBversion = '19.12.00.074'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "UPDATE systempreferences SET variable = 'SCOAllowCheckin' WHERE variable = 'AllowSelfCheckReturns'" ); + + # Always end with this (adjust the bug info) + NewVersion( $DBversion, 25147, "Rename AllowSelfCheckReturns to SCOAllowCheckin for consistency"); +} + # 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