관리-도구
편집 파일: 2020_12_04_151832_create_provinces_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProvincesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('provinces', function (Blueprint $table) { $table->id(); $table->string('np_name')->nullable(); $table->string('eng_name')->nullable(); $table->enum('status', ['0', '1'])->default('1'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('provinces'); } }