you can temporarily add a default value of NULL.. and then take it away after your alter statement
shez1983 said:
you can temporarily add a default value of NULL.. and then take it away after your alter statement
thanks, fixed it with
Schema::table('posts', function($table)
{
$table->string('link')->nullable()->unique();
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community