Bug 7178 follow-up DBRev number
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 26 Mar 2012 12:14:31 +0000 (14:14 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 26 Mar 2012 12:14:31 +0000 (14:14 +0200)
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index 4748669..020cd0a 100755 (executable)
@@ -5035,16 +5035,6 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     print "Upgrade to $DBversion done (New timeout field in z3950servers)\n";
 }
 
-$DBversion = "XXX";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
-    $dbh->do(qq{
-        INSERT INTO systempreferences(variable,value,explanation,options,type)
-        VALUES('UniqueItemFields', 'barcode', 'Space-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table', '', 'Free')
-    });
-    print "Upgrade to $DBversion done (Added system preference 'UniqueItemFields')\n";
-    SetVersion($DBversion);
-}
-
 $DBversion = "3.07.00.037";
 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     $dbh->do("
@@ -5063,6 +5053,16 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.07.00.038";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+    $dbh->do(qq{
+        INSERT INTO systempreferences(variable,value,explanation,options,type)
+        VALUES('UniqueItemFields', 'barcode', 'Space-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table', '', 'Free')
+    });
+    print "Upgrade to $DBversion done (Added system preference 'UniqueItemFields')\n";
+    SetVersion($DBversion);
+}
+
 =head1 FUNCTIONS
 
 =head2 DropAllForeignKeys($table)
index dbe2f12..e49170e 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.07.00.037';
+    our $VERSION = '3.07.00.038';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install