diff --git a/database/migrations/2016_11_28_092904_add_task_projects.php b/database/migrations/2016_11_28_092904_add_task_projects.php index 62b231e545ef..c1c334b2a160 100644 --- a/database/migrations/2016_11_28_092904_add_task_projects.php +++ b/database/migrations/2016_11_28_092904_add_task_projects.php @@ -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;');