Update composer, fix migrations

This commit is contained in:
James Cole
2019-09-13 05:36:01 +02:00
parent 8fd5b45a72
commit 4fd23694c7
2 changed files with 41 additions and 39 deletions

View File

@@ -36,7 +36,9 @@ class ChangesFor3101 extends Migration
Schema::table(
'import_jobs',
static function (Blueprint $table) {
$table->dropColumn('extended_status');
if (Schema::hasColumn('import_jobs', 'extended_status')) {
$table->dropColumn('extended_status');
}
}
);
}
@@ -51,7 +53,9 @@ class ChangesFor3101 extends Migration
Schema::table(
'import_jobs',
static function (Blueprint $table) {
$table->text('extended_status')->nullable();
if (!Schema::hasColumn('import_jobs', 'extended_status')) {
$table->text('extended_status')->nullable();
}
}
);
}