The following are instructions from Chris Cormack to Nicole Engard for fixing Bug #2761 which required database editing:
$DBversion = '3.01.00.041'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("ALTER TABLE items MODIFY itemcallnumber varchar(255);");
SetVersion ($DBversion); print " Upgrade to $DBversion done (change max length of itemcallnumber to 255 from 30.)\n"; }
$DBversion = '3.01.00.041'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("ALTER TABLE items MODIFY itemcallnumber varchar(255);"); SetVersion ($DBversion); print " Upgrade to $DBversion done (change max length of itemcallnumber to 255 from 30.)\n"; }
It is best to leave this final step to the Release Manager, but it is included here for education purposes:
And that is how we make a patch that changes the database!!