瀏覽代碼

修改 order_work_details 表

ajun 4 年之前
父節點
當前提交
44f3e23868
共有 1 個文件被更改,包括 32 次插入0 次删除
  1. 32 0
      database/migrations/2021_10_11_110033_work_order_details_drop_column_sku_amount.php

+ 32 - 0
database/migrations/2021_10_11_110033_work_order_details_drop_column_sku_amount.php

@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class WorkOrderDetailsDropColumnSkuAmount extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('work_order_details', function (Blueprint $table) {
+            $table->dropColumn('sku_amount');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('work_order_details', function (Blueprint $table) {
+            $table->tinyInteger('sku_amount')->comment('破损sku数量');
+        });
+    }
+}