laravel 4 - Schema Builder length of an integer -


i've been searching around , question asked few times, no-one seem able give definite answer it. how specify integer length table column using schema?

i've seen suggesting:

$table->integer('post')->length(11); 

but doesn't work - @ least laravel 4.2 - still produces column int(10).

is there built in method specify integer length?

if you're using mysql, can't specify length of integer column. can choose between 1 of available integer types, described @ http://dev.mysql.com/doc/refman/5.1/en/integer-types.html.

hence, cannot set integer length in laravel either. can choose 1 of available types described @ http://laravel.com/docs/schema#adding-columns.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -