finish announce api

This commit is contained in:
xiaomlove
2022-03-18 15:44:04 +08:00
parent 6665c98169
commit ab1ed60f44
13 changed files with 151 additions and 125 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddIndexToCheatersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cheaters', function (Blueprint $table) {
$table->index('torrentid');
$table->index('userid');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('cheaters', function (Blueprint $table) {
});
}
}