| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use App\Authority;
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class ChangeDischargeAuthName extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('discharge_tasks',function (Blueprint $table){
- $table->integer('warehouse_id')->comment('仓库')->default(null);
- $table->bigInteger('facilitator_id')->comment('装卸队')->default(null)->change();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('discharge_tasks',function (Blueprint $table){
- $table->dropColumn('warehouse_id');
- });
- }
- }
|