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
@@ -22,7 +22,7 @@ class CreateAttachmentsTable extends Migration
$table->unsignedSmallInteger('width')->default(0);
$table->dateTime('added')->nullable();
$table->string('filename')->default('');
$table->char('dlkey', 32)->index('idx_delkey');
$table->char('dlkey', 32)->index();
$table->string('filetype', 50)->default('');
$table->unsignedBigInteger('filesize')->default(0);
$table->string('location')->default('');
@@ -30,7 +30,7 @@ class CreateAttachmentsTable extends Migration
$table->smallInteger('isimage')->unsigned()->default(0);
$table->smallInteger('thumb')->unsigned()->default(0);
$table->index(['userid', 'id'], 'pid');
$table->index(['added', 'isimage', 'downloads'], 'dateline');
$table->index(['added', 'isimage', 'downloads'], );
});
}