Migration fix
This commit is contained in:
parent
8ee451b42f
commit
9dd64f83e0
1 changed files with 4 additions and 1 deletions
|
|
@ -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;');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue