Bug 8002 follow-up to use 3.09 and MODIFY instead of 3.08 and CHANGE
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 30 Apr 2012 12:36:08 +0000 (14:36 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 30 Apr 2012 12:36:08 +0000 (14:36 +0200)
see Ian comment 4 (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8002)

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

index dd3483f..2f66e79 100755 (executable)
@@ -5212,9 +5212,9 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     SetVersion($DBversion);
 }
 
-$DBversion = "3.08.00.XXX";
+$DBversion = "3.09.00.001";
 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
-    $dbh->do("ALTER TABLE borrower_attribute_types CHANGE category_code category_code VARCHAR( 1 ) NULL DEFAULT NULL");
+    $dbh->do("ALTER TABLE borrower_attribute_types MODIFY category_code VARCHAR( 1 ) NULL DEFAULT NULL");
     print "Upgrade to $DBversion done. (Bug 8002: Update patron attribute types table to allow NULL category_code)\n";
     SetVersion($DBversion);
 }
index 8b029f8..aa08729 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.08.00.000';
+    our $VERSION = '3.09.00.001';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install