Bug 6761 - Longer userid field

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Amit Gupta 2011-10-07 11:13:41 +05:30 committed by Chris Cormack
parent 0cf8194d5f
commit e5c6fc8a87
2 changed files with 7 additions and 1 deletions

View file

@ -244,7 +244,7 @@ CREATE TABLE `borrowers` ( -- this table includes information about your patrons
`sex` varchar(1) default NULL, -- patron/borrower's gender
`password` varchar(30) default NULL, -- patron/borrower's encrypted password
`flags` int(11) default NULL, -- will include a number associated with the staff member's permissions
`userid` varchar(30) default NULL, -- patron/borrower's opac and/or staff client log in
`userid` varchar(75) default NULL, -- patron/borrower's opac and/or staff client log in
`opacnote` mediumtext, -- a note on the patron/borrower's account that is visible in the OPAC and staff client
`contactnote` varchar(255) default NULL, -- a note related to the patron/borrower's alternate address
`sort1` varchar(80) default NULL, -- a field that can be used for any information unique to the library

View file

@ -4459,6 +4459,12 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion($DBversion);
}
$DBversion = "3.05.00.XXX";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("ALTER TABLE `borrowers` MODIFY `userid` VARCHAR(75)");
print "Modified userid column length into 75 in borrowers\n";
SetVersion($DBversion);
}
=head1 FUNCTIONS