torrent keyword search remove or

This commit is contained in:
xiaomlove
2023-03-04 13:26:20 +08:00
parent 8d49bb3024
commit 37920145b0
13 changed files with 81 additions and 40 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('peers', function (Blueprint $table) {
$table->index('last_action');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('peers', function (Blueprint $table) {
$table->dropIndex('peers_last_action_index');
});
}
};