Migration fix

This commit is contained in:
Hillel Coren 2017-01-03 16:17:01 +02:00
parent afca48ccb5
commit 4dcb5edf86

View File

@ -35,7 +35,10 @@ class AddTaskProjects extends Migration
Schema::table('tasks', function ($table)
{
$table->unsignedInteger('project_id')->nullable()->index();
$table->text('description')->change();
if (Schema::hasColumn('tasks', 'description')) {
$table->text('description')->change();
}
});
DB::statement('SET FOREIGN_KEY_CHECKS=0;');