【发布时间】:2014-08-16 16:26:43
【问题描述】:
我使用未签名的user_id 创建了一个迁移。如何在新迁移中编辑 user_id 以使其也成为 nullable()?
Schema::create('throttle', function(Blueprint $table)
{
$table->increments('id');
// this needs to also be nullable, how should the next migration be?
$table->integer('user_id')->unsigned();
}
【问题讨论】:
标签: laravel laravel-5 eloquent nullable laravel-migrations