我正在Laravel 5上设置迁移,想知道是否有关于每种列类型的默认长度的文档?他们是否遵循MySQL这样的惯例?
前任:
我说的是这些列类型: (http://laravel.com/docs/5.0/schema#adding-columns)
我正在Laravel 5上设置迁移,想知道是否有关于每种列类型的默认长度的文档?他们是否遵循MySQL这样的惯例?
前任:
我说的是这些列类型: (http://laravel.com/docs/5.0/schema#adding-columns)
以下是有关列类型的Laravel文档链接
http://laravel.com/api/5.0/Illuminate/Database/Schema/Blueprint.html
From the documentation, I guess the default of 255 is imposed on string() and char() methods as evident from
http://laravel.com/api/5.0/Illuminate/Database/Schema/Blueprint.html#method_string
Hope this helps!