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
+3 -1
View File
@@ -178,7 +178,9 @@ function dltable($name, $arr, $torrent, &$isSeedBoxCaseWhens)
$downloaders = $seedersAndLeechers['leechers'];
do_log("SEEDER_LEECHER_FROM_FILTER: torrent_seeder_leecher_list");
} else {
$subres = sql_query("SELECT id, seeder, finishedat, downloadoffset, uploadoffset, ip, ipv4, ipv6, port, uploaded, downloaded, to_go, UNIX_TIMESTAMP(started) AS st, connectable, agent, peer_id, UNIX_TIMESTAMP(last_action) AS la, userid FROM peers WHERE torrent = $id") or sqlerr();
$startedField = \Nexus\Database\NexusDB::unixTimestampField('started');
$lastActionField = \Nexus\Database\NexusDB::unixTimestampField('last_action');
$subres = sql_query("SELECT id, seeder, finishedat, downloadoffset, uploadoffset, ip, ipv4, ipv6, port, uploaded, downloaded, to_go, $startedField AS st, connectable, agent, peer_id, $lastActionField AS la, userid FROM peers WHERE torrent = $id") or sqlerr();
while ($subrow = mysql_fetch_array($subres)) {
if ($subrow["seeder"] == "yes")
$seeders[] = $subrow;