فهرست منبع

统计修改完成 待浏览器测试

ANG YU 5 سال پیش
والد
کامیت
c9beaf7170
1فایلهای تغییر یافته به همراه36 افزوده شده و 0 حذف شده
  1. 36 0
      database/migrations/2020_12_07_114859_add_order_counting_records_year_month_week.php

+ 36 - 0
database/migrations/2020_12_07_114859_add_order_counting_records_year_month_week.php

@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddOrderCountingRecordsYearMonthWeek extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('order_counting_records', function (Blueprint $table) {
+            $table->string('year')->nullable();
+            $table->string('week')->nullable();
+            $table->string('month')->nullable();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('order_counting_records', function (Blueprint $table) {
+            $table->dropColumn('year');
+            $table->dropColumn('week');
+            $table->dropColumn('month');
+        });
+    }
+}