From 5768ea9532e0ee19b77346e2ba13681339b18017 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 11 Apr 2019 12:21:01 +0000 Subject: [PATCH] Bug 12166: DBRev 18.12.00.040 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../data/mysql/atomicupdate/bug_12166_reserve_charge.perl | 6 ------ installer/data/mysql/updatedatabase.pl | 7 +++++++ 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12166_reserve_charge.perl diff --git a/Koha.pm b/Koha.pm index 20da074d6c..e0962c6888 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 = "18.12.00.039"; +$VERSION = "18.12.00.040"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12166_reserve_charge.perl b/installer/data/mysql/atomicupdate/bug_12166_reserve_charge.perl deleted file mode 100644 index 508dcddead..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12166_reserve_charge.perl +++ /dev/null @@ -1,6 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do("UPDATE accountlines SET description = REPLACE(description, 'Reserve Charge - ', '') WHERE description LIKE 'Reserve Charge - %'"); - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 12166 - Remove 'Reserve Charge' text from accountlines description)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index d2cb81e54a..eec844bedf 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17939,6 +17939,13 @@ if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (Bug 22600 - Add interface to accountlines)\n"; } +$DBversion = '18.12.00.040'; +if( CheckVersion( $DBversion ) ) { + $dbh->do("UPDATE accountlines SET description = REPLACE(description, 'Reserve Charge - ', '') WHERE description LIKE 'Reserve Charge - %'"); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 12166 - Remove 'Reserve Charge' text from accountlines description)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5