1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-17 08:32:51 +01:00

Migration fix

This commit is contained in:
Hillel Coren 2017-01-03 16:16:42 +02:00
parent 8ee451b42f
commit 9dd64f83e0

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;');