Bugzilla – Attachment 5760 Details for
Bug 6761
Longer userid field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6761 - Longer userid field
0001-Bug-6761-Longer-userid-field.patch (text/plain), 2.02 KB, created by
Amit Gupta
on 2011-10-07 05:47:01 UTC
(
hide
)
Description:
Bug 6761 - Longer userid field
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2011-10-07 05:47:01 UTC
Size:
2.02 KB
patch
obsolete
>From 1090d3b0f25ec6474ec438ca1eea32882e3ca04f Mon Sep 17 00:00:00 2001 >From: Amit Gupta <amit.gupta@osslabs.biz> >Date: Fri, 7 Oct 2011 11:13:41 +0530 >Subject: [PATCH] Bug 6761 - Longer userid field > >--- > installer/data/mysql/kohastructure.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 6 ++++++ > 2 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 3a51df5..c119ca1 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -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 >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 6b88c29..8e0b423 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -4446,6 +4446,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 > >-- >1.6.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6761
:
5354
|
5374
| 5760