相关疑难解决方法(0)

Laravel迁移变为使列可以为空

我用unsigned创建了一个迁移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();
}
Run Code Online (Sandbox Code Playgroud)

nullable laravel eloquent laravel-5 laravel-migrations

172
推荐指数
9
解决办法
17万
查看次数