| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class ChangeOrderTracking extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- //
- Schema::table('order_trackings', function (Blueprint $table) {
- $table->decimal('gross_weight')->nullable()->comment('重KG');
- $table->decimal('bulk')->nullable()->comment('体积m3');
- });
- Schema::table('order_issues', function (Blueprint $table) {
- $table->timestamp('settlement_at')->nullable()->index()->comment('解决时间');
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- //
- Schema::table('order_trackings', function (Blueprint $table) {
- $table->dropColumn('gross_weight');
- $table->dropColumn('bulk');
- });
- Schema::table('order_issues', function (Blueprint $table) {
- $table->dropColumn('settlement_at');
- });
- }
- }
|