| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class ChangeWaybillsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::table('waybills',function (Blueprint $table){
- $table->string('mileage')->nullable()->comment('里程');
- $table->bigInteger('amount')->nullable()->comment('件数');
- $table->string('inquire_tel')->nullable()->comment('查件电话');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('waybills',function (Blueprint $table){
- $table->dropColumn('mileage');
- $table->dropColumn('amount');
- $table->dropColumn('inquire_tel');
- });
- }
- }
|