From 10f78fcb2efec81b3c2024c97dbb55b21a3c14a8 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 4 Jan 2019 02:51:03 +0000 Subject: [PATCH] Bug 21915: DBRev 18.12.00.006 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/21915.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/21915.perl diff --git a/Koha.pm b/Koha.pm index 33056a7840..7380682ac9 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.005"; +$VERSION = "18.12.00.006"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/21915.perl b/installer/data/mysql/atomicupdate/21915.perl deleted file mode 100644 index 5389a65403..0000000000 --- a/installer/data/mysql/atomicupdate/21915.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES - ('AccountAutoReconcile','0','If enabled, patron balances will get reconciled automatically on each transaction.',NULL,'YesNo'); - }); - SetVersion($DBversion); - print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index cd299ded34..5b0399b281 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17225,6 +17225,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 22030: Add OverDriveUsername syspref)\n"; } +$DBversion = '18.12.00.006'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES + ('AccountAutoReconcile','0','If enabled, patron balances will get reconciled automatically on each transaction.',NULL,'YesNo'); + }); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.2