From 208500193ef23678793c00ca2a8da4c55dba9724 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 23 Oct 2017 12:34:25 -0300 Subject: [PATCH] Bug 12768: DBRev 17.06.00.019 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/processing_fee.sql | 1 - installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/processing_fee.sql diff --git a/Koha.pm b/Koha.pm index b07fc2752c..07e7115b86 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 = "17.06.00.018"; +$VERSION = "17.06.00.019"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/processing_fee.sql b/installer/data/mysql/atomicupdate/processing_fee.sql deleted file mode 100644 index 98b9827c7d..0000000000 --- a/installer/data/mysql/atomicupdate/processing_fee.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO account_offset_types ( type ) VALUES ( 'Processing Fee' ); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 73b4462f9c..b84efd9df4 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -14806,6 +14806,7 @@ if( CheckVersion( $DBversion ) ) { ('Writeoff'), ('Payment'), ('Lost Item'), + ('Processing Fee'), ('Manual Debit'), ('Reverse Payment'), ('Forgiven'), @@ -14846,6 +14847,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 12768 - Insert system preferences useDefaultReplacementCost and ProcessingFeeNote + Add new columns defaultreplacecost and processfee to the itemtypes table)\n"; } +$DBversion = '17.06.00.019'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO account_offset_types ( type ) VALUES ( 'Processing Fee' ); + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 12768 - Add 'Processing Fee' to the account_offset_types table if missing)"; +} + + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5