CREATE TABLE `messages` (
`message_id` int(11) NOT NULL auto_increment,
`borrowernumber` int(11) NOT NULL,
- `branchcode` varchar(4) default NULL,
+ `branchcode` varchar(10) default NULL,
`message_type` varchar(1) NOT NULL,
`message` text NOT NULL,
`message_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
SetVersion ($DBversion);
}
+$DBversion = '3.01.00.127';
+if (C4::Context->preference('Version') < TransformToNum($DBversion)){
+ $dbh->do("ALTER TABLE messages CHANGE branchcode branchcode varchar(10);");
+ print "Upgrade to $DBversion done (bug 4190: messages in patron account did not work with branchcodes > 4)\n";
+ SetVersion ($DBversion);
+}
+
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table
use strict;
sub kohaversion {
- our $VERSION = '3.01.00.126';
+ our $VERSION = '3.01.00.127';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install