sifangpay/database/migrations/2019_01_03_155234_create_me...

36 lines
874 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMerchantLogs extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('merchant_logs', function (Blueprint $table) {
$table->increments('id');
$table->integer('merchant_id')->unsigned()->comment('merchant_id');
$table->string('desc', 255)->comment('日志描述');
$table->string('ip', 30)->comment('IP地址');
$table->string('url', 150)->comment('操作地址');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('merchant_logs');
}
}