mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
peers add index torrent_peer
This commit is contained in:
@@ -36,7 +36,7 @@ class CreatePeersTable extends Migration
|
|||||||
$table->unsignedBigInteger('downloadoffset')->default(0);
|
$table->unsignedBigInteger('downloadoffset')->default(0);
|
||||||
$table->unsignedBigInteger('uploadoffset')->default(0);
|
$table->unsignedBigInteger('uploadoffset')->default(0);
|
||||||
$table->char('passkey', 32)->default('');
|
$table->char('passkey', 32)->default('');
|
||||||
$table->index(['torrent', 'peer_id']);
|
$table->unique(['torrent', 'peer_id']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user