增加数据库
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWashcarLogsTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('washcar_logs', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('url')->comment('地址');
|
||||
$table->text('in_source')->comment('入参');
|
||||
$table->text('out_source')->comment('出参')->nullable();
|
||||
$table->boolean('status')->default(1);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('washcar_logs');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user