Bug 8992: DBRev 3.19.00.031
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 28 Apr 2015 19:33:27 +0000 (16:33 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 28 Apr 2015 19:40:47 +0000 (16:40 -0300)
Some fixes too.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 556f0d0..5d1b778 100755 (executable)
@@ -10257,10 +10257,10 @@ DELETE FROM language_descriptions
     SetVersion($DBversion);
 }
 
-$DBversion = "3.19.00.XXX";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+$DBversion = "3.19.00.031";
+if ( CheckVersion($DBversion) ) {
     $dbh->do(q{
-        INSERT INTO systempreferences (variable,value,explanation,options,type)
+        INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
         VALUES('IdRef','0','Disable/enable the IdRef webservice from the OPAC detail page.',NULL,'YesNo')
     });
     print "Upgrade to $DBversion done (Bug 8992: Add system preference IdRef))\n";
index 0828f08..2f845e8 100644 (file)
@@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.19.00.030';
+    our $VERSION = '3.19.00.031';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install