[Koha-devel] Curiosity why is cardnumber field size 16?

Jonathan Druart jonathan.druart at bugs.koha-community.org
Wed Sep 14 09:25:33 CEST 2016


Hi Indranil,

I do not think there is any valid reason, I guess 16 looked enough at
the time. If you want to extend it, feel free to submit a patch.

Cheers,
Jonathan

2016-09-14 0:15 GMT+01:00 Indranil Das Gupta <indradg at gmail.com>:
> Hi all,
>
> I'm curious to know why is Koha's cardnumber field in borrowers table
> is historically set to VARCHAR(16) rather than say VARCHAR(255)?
> Especially since we now have the CardnumberLength syspref which we
> could use to drive the length rather than hardcode it down at 16.
>
> The background of this question: Schools in Nigeria use a
> matriculation number which is often larger than 16, as their
> cardnumber. Zeno did mention to me in a FB post that
> ExtendedPatronAttribute would equally do the job.
>
> Thoughts?
>
> -indranil
>
> --
> Indranil Das Gupta
> L2C2 Technologies
>
> Phone : +91-98300-20971
> Blog    : http://blog.l2c2.co.in
> IRC     : indradg on irc://irc.freenode.net
> Twitter : indradg
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/


More information about the Koha-devel mailing list