|
|
@@ -1,34 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-use Illuminate\Support\Facades\Schema;
|
|
|
-use Illuminate\Database\Schema\Blueprint;
|
|
|
-use Illuminate\Database\Migrations\Migration;
|
|
|
-
|
|
|
-class ChangeWaybillStatus extends Migration
|
|
|
-{
|
|
|
- /**
|
|
|
- * Run the migrations.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function up()
|
|
|
- {
|
|
|
- Schema::table('waybills', function (Blueprint $table) {
|
|
|
- $table->dropColumn('state');
|
|
|
- $table->enum('status',['未审核','已审核','待重审','待终审','已完结','无模型'])->default('未审核')->index()->comment('状态');
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Reverse the migrations.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function down()
|
|
|
- {
|
|
|
- Schema::table('waybills', function (Blueprint $table) {
|
|
|
- $table->dropColumn('status');
|
|
|
- $table->string('state',20)->nullable()->comment('状态');
|
|
|
- });
|
|
|
- }
|
|
|
-}
|