From f1659fa09f68541efbb552390f858f5567354f2d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Apr 2018 12:29:20 -0300 Subject: [PATCH] Bug 18790: DBRev 17.12.00.034 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_18790.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_18790.perl diff --git a/Koha.pm b/Koha.pm index 6acd0dc149..93c07cb4e3 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.12.00.033"; +$VERSION = "17.12.00.034"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_18790.perl b/installer/data/mysql/atomicupdate/bug_18790.perl deleted file mode 100644 index 29bda91360..0000000000 --- a/installer/data/mysql/atomicupdate/bug_18790.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - - $dbh->do( q{INSERT IGNORE INTO account_offset_types ( type ) VALUES ('Void Payment')} ); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 18790 - Add ability to void payment)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1bacdfd138..3f43ea1ba2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15872,6 +15872,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 18786 - Add ability to create custom payment types)\n"; } +$DBversion = '17.12.00.034'; +if( CheckVersion( $DBversion ) ) { + + $dbh->do( q{ + INSERT IGNORE INTO account_offset_types ( type ) VALUES ('Void Payment') + } ); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 18790 - Add ability to void payment)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5