db install - set lenght of integer filed

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
maranc
Forum Members
Forum Members
Posts: 249
Joined: Tue May 04, 2010 5:04 pm

db install - set lenght of integer filed

Post by maranc »

Hi, because I didn't find any solution for my problem short description:

I need make in db field with 13 characters lenght (type integer).
I know that in install script I can make C(13) type, but maybe is here another option. I saw that in some modules is somthing like I1 (type TINYINT), maybe I(13) is correct? Maybe here is any link to API documentation?

Thanks for any answer....

Marek A.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: db install - set lenght of integer filed

Post by calguy1000 »

You will need to look at the adodb reference for the types of integers. I think there is L for Long integer, I for normal integer and I1 for short interval (typically only usable for booleans).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Developers Discussion”