sifangpay/database/migrations/2018_09_12_045822_create_ta...

37 lines
959 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableBanks extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('banks', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->comment('名称');
$table->string('thumb')->nullable()->comment('银行图标');
$table->string('bank_sn')->nullable()->comment('银行编码');
$table->smallInteger('sort')->default(1)->comment('排序');
$table->tinyInteger('is_checked')->default(1)->comment('状态1:启用,0:禁用');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('banks');
}
}