Laravel Migration Ändern, um eine Spalte null-Werte zulässt

Erstellte ich eine migration mit unsigned user_id. Wie kann ich die Bearbeiten user_id in einer neuen migration zu machen es auch 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();
}
InformationsquelleAutor user391986 | 2014-06-25
Schreibe einen Kommentar