From 05f73a551e6bf17afbf58bb1ba39c47c09e6af59 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Sep 2021 11:13:21 -0400 Subject: [PATCH] Bug 28774: DBRev 20.11.09.001 Signed-off-by: Kyle M Hall (cherry picked from commit 4892d293526d5edae15a8ebc73eb27ac64edd386) Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- .../bug_28774_remove_blank_rentaldiscount.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_28774_remove_blank_rentaldiscount.perl diff --git a/Koha.pm b/Koha.pm index 3fa0785883..8d437acce8 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.11.09.000"; +$VERSION = "20.11.09.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_28774_remove_blank_rentaldiscount.perl b/installer/data/mysql/atomicupdate/bug_28774_remove_blank_rentaldiscount.perl deleted file mode 100644 index 395f587dbc..0000000000 --- a/installer/data/mysql/atomicupdate/bug_28774_remove_blank_rentaldiscount.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - DELETE FROM circulation_rules - WHERE rule_name = 'rentaldiscount' AND rule_value='' - }); - NewVersion( $DBversion, 28774, "Delete blank rental discounts"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2f6fb572fb..8781fa3366 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23648,6 +23648,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, "", "Koha 20.11.09 release" ); } +$DBversion = '20.11.09.001'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + DELETE FROM circulation_rules + WHERE rule_name = 'rentaldiscount' AND rule_value='' + }); + NewVersion( $DBversion, "28774", "Delete blank rental discounts" ); +} + # 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