From 4892d293526d5edae15a8ebc73eb27ac64edd386 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 21.05.03.001 Signed-off-by: Kyle M Hall --- 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 adb53686c9..5971112670 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 = "21.05.02.003"; +$VERSION = "21.05.03.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 fc0a3a7c3e..0279ae1143 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -24427,6 +24427,15 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, "", "Koha 21.05.03 release" ); } +$DBversion = '21.05.03.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