From 567e2ac8874839ec9b2490148c6afeabdfcf591b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Mar 2018 17:18:26 -0300 Subject: [PATCH] Bug 20264: DBRev 17.12.00.023 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../atomicupdate/bug_20264_remove_checkdigit.sql | 1 - installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_20264_remove_checkdigit.sql diff --git a/Koha.pm b/Koha.pm index 78977c0032..fe5d0d2345 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.022"; +$VERSION = "17.12.00.023"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_20264_remove_checkdigit.sql b/installer/data/mysql/atomicupdate/bug_20264_remove_checkdigit.sql deleted file mode 100644 index 529b3398a6..0000000000 --- a/installer/data/mysql/atomicupdate/bug_20264_remove_checkdigit.sql +++ /dev/null @@ -1 +0,0 @@ -DELETE FROM systempreferences WHERE variable="checkdigit"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 89916091fa..4c2f757025 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15626,6 +15626,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 4078 - Add column currency.p_sep_by_space)\n"; } +$DBversion = '17.12.00.023'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + DELETE FROM systempreferences + WHERE variable='checkdigit' + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 20264 - Remove system preference 'checkdigit')\n"; +} + + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5