Bug 13984: DBRev 3.19.00.034
authorTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 29 Apr 2015 18:23:43 +0000 (15:23 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 29 Apr 2015 18:24:05 +0000 (15:24 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql [deleted file]
installer/data/mysql/updatedatabase.pl
kohaversion.pl

diff --git a/installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql b/installer/data/mysql/atomicupdate/bug_13984-add-CardnumberLength_unless_exists.sql
deleted file mode 100644 (file)
index 8b294df..0000000
+++ /dev/null
@@ -1 +0,0 @@
-INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES('CardnumberLength', '', '', 'Set a length for card numbers.', 'Free');
index 6c578a7..2cbec16 100755 (executable)
@@ -10291,6 +10291,16 @@ if ( CheckVersion($DBversion) ) {
     SetVersion ($DBversion);
 }
 
+$DBversion = "3.19.00.034";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q|
+        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
+        VALUES('CardnumberLength', '', '', 'Set a length for card numbers.', 'Free')
+    |);
+    print "Upgrade to $DBversion done (Bug 13984: CardnumberLength syspref missing on some setups\n";
+    SetVersion ($DBversion);
+}
+
 # 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.
index 016752d..6fedc50 100644 (file)
@@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.19.00.033';
+    our $VERSION = '3.19.00.034';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install