6
0
Fork 0
release
李静 2021-12-30 19:02:38 +08:00
parent eebbeaec8f
commit c6d3c45a66
1 changed files with 0 additions and 32 deletions

View File

@ -1,32 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddInviterIdIndexToUserInfosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('user_infos', function (Blueprint $table) {
$table->index('inviter_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('user_infos', function (Blueprint $table) {
$table->dropIndex(['inviter_id']);
});
}
}