Bug 8220: Increment version number
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 22 Mar 2013 00:41:12 +0000 (20:41 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 22 Mar 2013 00:41:12 +0000 (20:41 -0400)
Database update for bug 8220 has been given version 3.11.00.110

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

index 8cb0539..e0bcad0 100755 (executable)
@@ -6528,14 +6528,6 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     print "Upgrade to $DBversion done (3.12-alpha release)\n";
 }
 
-$DBversion = "3.11.00.XXX";
-if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
-    $dbh->do("ALTER TABLE `pending_offline_operations` CHANGE `barcode` `barcode` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL");
-    $dbh->do("ALTER TABLE `pending_offline_operations` ADD `amount` DECIMAL( 28, 6 ) NULL DEFAULT NULL");
-    print "Upgrade to $DBversion done (Bug 8220 - Allow koc uploads to go to process queue)\n";
-    SetVersion ($DBversion);
-}
-
 $DBversion = "3.11.00.101";
 if ( CheckVersion($DBversion) ) {
    $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('UNIMARCAuthorsFacetsSeparator',', ', 'UNIMARC authors facets separator', NULL, 'short')");
@@ -6683,6 +6675,14 @@ if ( CheckVersion($DBversion) ) {
    SetVersion ($DBversion);
 }
 
+$DBversion = "3.11.00.110";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do("ALTER TABLE pending_offline_operations CHANGE barcode barcode VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL");
+    $dbh->do("ALTER TABLE pending_offline_operations ADD amount DECIMAL( 28, 6 ) NULL DEFAULT NULL");
+    print "Upgrade to $DBversion done (Bug 8220 - Allow koc uploads to go to process queue)\n";
+    SetVersion ($DBversion);
+}
+
 
 
 =head1 FUNCTIONS
index fc5fbd8..6e0c22e 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.11.00.109';
+    our $VERSION = '3.11.00.110';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install