Lines 5212-5220
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
Link Here
|
5212 |
SetVersion($DBversion); |
5212 |
SetVersion($DBversion); |
5213 |
} |
5213 |
} |
5214 |
|
5214 |
|
5215 |
$DBversion = "3.08.00.XXX"; |
5215 |
$DBversion = "3.09.00.001"; |
5216 |
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { |
5216 |
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { |
5217 |
$dbh->do("ALTER TABLE borrower_attribute_types CHANGE category_code category_code VARCHAR( 1 ) NULL DEFAULT NULL"); |
5217 |
$dbh->do("ALTER TABLE borrower_attribute_types MODIFY category_code VARCHAR( 1 ) NULL DEFAULT NULL"); |
5218 |
print "Upgrade to $DBversion done. (Bug 8002: Update patron attribute types table to allow NULL category_code)\n"; |
5218 |
print "Upgrade to $DBversion done. (Bug 8002: Update patron attribute types table to allow NULL category_code)\n"; |
5219 |
SetVersion($DBversion); |
5219 |
SetVersion($DBversion); |
5220 |
} |
5220 |
} |