관리-도구
편집 파일: 2020_07_25_061549_create_currency_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCurrencyTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('currency', function (Blueprint $table) { $table->id(); $table->string('name',3); $table->tinyInteger('base_currency'); $table->decimal('exchange_rate',10,2); $table->tinyInteger('status')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('currency'); } }