fix migration rename column issues

This commit is contained in:
2023-04-21 09:58:05 +10:00
parent 2534d4c159
commit 68d59eda69
2 changed files with 5 additions and 2 deletions

View File

@@ -27,7 +27,10 @@ return new class extends Migration
$table->bigInteger('size')->default(0)->change();
$table->string('permission')->default("")->nullable(false)->change();
$table->string('mime')->default("")->nullable(false)->change();
$table->string('mime')->default("")->nullable(false)->change();
});
Schema::table('media', function(Blueprint $table) {
$table->renameColumn('mime', 'mime_type');
});
}