Browse Source

Merge branch 'v0.2' into develop

durong 5 years ago
parent
commit
c171636827

+ 1 - 1
database/migrations/2019_04_28_025052_create_cms_subject_product_table.php

@@ -16,7 +16,7 @@ class CreateCmsSubjectProductTable extends Migration
         Schema::create('cms_subject_product', function (Blueprint $table) {
             $table->bigIncrements('id');
             $table->integer('sort')->comment('商品排序');
-            $table->integer('product_id',20)->comment('商品ID');
+            $table->integer('product_id')->comment('商品ID');
             $table->timestamps();
             $table->softDeletes();
         });

+ 0 - 32
database/migrations/2019_04_28_084605_add_product_id_cms_subject_product_table.php

@@ -1,32 +0,0 @@
-<?php
-
-use Illuminate\Support\Facades\Schema;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Database\Migrations\Migration;
-
-class AddProductIdCmsSubjectProductTable extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::table('cms_subject_product', function (Blueprint $table) {
-            $table->string('product_id',20)->comment('商品ID');
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::table('cms_subject_product', function (Blueprint $table) {
-            //
-        });
-    }
-}

+ 0 - 32
database/migrations/2019_04_28_095947_update_product_id_cms_subject_product_table.php

@@ -1,32 +0,0 @@
-<?php
-
-use Illuminate\Support\Facades\Schema;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Database\Migrations\Migration;
-
-class UpdateProductIdCmsSubjectProductTable extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::table('cms_subject_product', function (Blueprint $table) {
-            $table->integer('product_id')->comment('商品ID')->change();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::table('cms_subject_product', function (Blueprint $table) {
-            $table->dropColumn(['product_id']);
-        });
-    }
-}