migrations remove index name

This commit is contained in:
xiaomlove
2026-04-20 22:41:09 +07:00
parent dfe9436f1d
commit 94a35b81dc
23 changed files with 36 additions and 34 deletions
@@ -18,7 +18,7 @@ class CreateFilesTable extends Migration
}
Schema::create('files', function (Blueprint $table) {
$table->increments('id');
$table->unsignedMediumInteger('torrent')->default(0)->index('torrent');
$table->unsignedMediumInteger('torrent')->default(0)->index();
$table->string('filename')->default('');
$table->unsignedBigInteger('size')->default(0);
});