Fixed it by changing string to text. Is there anything that could go wrong by me doing that?
On Thursday, April 10, 2014 12:52:13 PM UTC-4, Austin Taylor wrote: > > Are there any other suggestions? I've tried everything and I really need > help with this. > > When the table is set to Migrate=True the sql log shows VARCHAR(255) even > though my actual SQLDatabase shows 499 length and my length on the db model > is set to length=500 > > On Thursday, April 10, 2014 11:05:29 AM UTC-4, 黄祥 wrote: >> >> please try to start from simple, create your new web2py application and >> then put your define table there, after that check your sql.log or test it >> from appadmin. >> e.g. >> *models/db.py* >> db.define_table('newtable', >> Field('Name','string'), >> Field('Comments', string', length=499) ) >> >> best regards, >> stifan >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.