Schema Builder length of an integer

前端 未结 6 951
一整个雨季
一整个雨季 2021-01-01 21:17

I\'ve been searching around and the question was asked a few times, but no-one seem to be able to give a definite answer to it. How do you specify the integer length for the

6条回答
  •  没有蜡笔的小新
    2021-01-01 21:53

    If you're using MySQL, you can't specify the length of an integer column. You can only choose between one of the available integer types, described at http://dev.mysql.com/doc/refman/5.1/en/integer-types.html.

    Hence, you cannot set the integer length in Laravel either.

    You can only choose one of the available types described at Laravel 4.2 Database Migration Creating Column.

提交回复
热议问题