我是Laravel 的新手.
Now i am using the migrate command to make a table, but the length of the filed is not applicable. Laravel does not provide this option. ?
以下是我的代码:
$table->increments('id')->length(11);
$table->dateTime('created_time');
$table->integer('bank_id')->length(11);
$table->tinyInteger('is_black')->length(1);
字段is_black
的长度应该是1,但它实际上被生成为4.
Any suggestion or advice would be appreciated.
提前谢谢您