添加status列

This commit is contained in:
邓皓元 2019-02-14 14:16:34 +08:00
parent 9e178159f1
commit ea0321ff37

View File

@ -1,3 +1,17 @@
<?php
use Illuminate\Support\Facades\Schema;
require_once realpath(dirname(__FILE__) . '/TestCase.php');
Schema::table('virtual_companies', function ($table) {
$table->tinyInteger('status')->unsigned()->default(0)->comment('状态 0:正常 1:禁用');
});
Schema::table('virtual_packages', function ($table) {
$table->tinyInteger('status')->unsigned()->default(0)->comment('状态 0:正常 1:禁用');
});
Schema::table('virtual_products', function ($table) {
$table->tinyInteger('status')->unsigned()->default(0)->comment('状态 0:正常 1:禁用');
});