海工商新版后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
952 B

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOperationLogTable extends Migration
{
public function getConnection()
{
return config('database.connection') ?: config('database.default');
}
public function up()
{
if (! Schema::hasTable('admin_operation_log')) {
Schema::create('admin_operation_log', function (Blueprint $table) {
$table->bigIncrements('id')->unsigned();
$table->bigInteger('user_id');
$table->string('path');
$table->string('method', 10);
$table->string('ip');
$table->text('input');
$table->index('user_id');
$table->timestamps();
});
}
}
public function down()
{
Schema::dropIfExists('admin_operation_log');
}
}