Bug 8002 follow-up to use 3.09 and MODIFY instead of 3.08 and CHANGE

see Ian comment 4 (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8002)
This commit is contained in:
Paul Poulain 2012-04-30 14:36:08 +02:00
parent 50f1db6c77
commit a726cf2804
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View 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