complain check email and record ip

This commit is contained in:
xiaomlove
2022-10-13 00:48:02 +08:00
parent 4ffcacc131
commit 749afd6c5a
3 changed files with 47 additions and 4 deletions

View File

@@ -0,0 +1,38 @@
<?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('complains', function (Blueprint $table) {
$table->string('ip')->nullable(true);
});
Schema::table('complain_replies', function (Blueprint $table) {
$table->string('ip')->nullable(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('complains', function (Blueprint $table) {
$table->dropColumn('ip');
});
Schema::table('complain_replies', function (Blueprint $table) {
$table->dropColumn('ip');
});
}
};