mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
improve cleanup
This commit is contained in:
@@ -17,7 +17,7 @@ class CreatePeersTable extends Migration
|
||||
return;
|
||||
}
|
||||
Schema::create('peers', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->bigIncrements('id');
|
||||
$table->unsignedMediumInteger('torrent')->default(0);
|
||||
$table->char('peer_id', 20)->charset('binary')->index();
|
||||
$table->string('ip', 64)->default('');
|
||||
|
||||
@@ -17,7 +17,7 @@ class CreateSnatchedTable extends Migration
|
||||
return;
|
||||
}
|
||||
Schema::create('snatched', function (Blueprint $table) {
|
||||
$table->integer('id', true);
|
||||
$table->bigIncrements('id', true);
|
||||
$table->unsignedMediumInteger('torrentid')->default(0);
|
||||
$table->unsignedMediumInteger('userid')->default(0)->index('userid');
|
||||
$table->string('ip', 64)->default('');
|
||||
|
||||
Reference in New Issue
Block a user