fix error changing defaults after rename

This commit is contained in:
2023-04-11 13:15:24 +10:00
parent 1578a2b8d1
commit df6456f5d2

View File

@@ -24,14 +24,17 @@ return new class extends Migration
$table->renameColumn('mime', 'mime_type');
$table->bigInteger('size')->default(0)->change();
$table->string('mime_type')->default("")->nullable(false)->change();
$table->string('permission')->default("")->nullable(false)->change();
$table->string('storage')->default("cdn");
$table->string('description')->default("");
$table->string('status')->default("");
$table->string('dimensions')->default("");
$table->text('variants')->default("");
$table->text('variants');
});
Schema::table('media', function (Blueprint $table) {
$table->string('mime_type')->default("")->nullable(false)->change();
});
}