index page add top uploader

This commit is contained in:
xiaomlove
2022-04-25 01:22:07 +08:00
parent c3969aeee9
commit a47b33a983
18 changed files with 156 additions and 60 deletions

View File

@@ -27,10 +27,12 @@ return new class extends Migration
DB::statement($sql);
}
Schema::table($tableName, function (Blueprint $table) {
$table->index(['torrent', 'peer_id']);
$table->index('peer_id');
});
$sql = "alter table peers add index idx_torrent_peer(`torrent`, `peer_id`(20))";
DB::statement($sql);
$sql = "alter table peers add index idx_peer(`peer_id`(20))";
DB::statement($sql);
}
/**