Bug 20264: DBRev 17.12.00.023
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 19 Mar 2018 20:18:26 +0000 (17:18 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Mar 2018 14:45:38 +0000 (11:45 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha.pm
installer/data/mysql/atomicupdate/bug_20264_remove_checkdigit.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 78977c0..fe5d0d2 100644 (file)
--- 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 (file)
index 529b339..0000000
+++ /dev/null
@@ -1 +0,0 @@
-DELETE FROM systempreferences WHERE variable="checkdigit";
index 8991609..4c2f757 100755 (executable)
@@ -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.