Kaynağa Gözat

Merge branch 'v0.2' of http://git.caihongxingqiu.net/rainbow/cms-manage into v0.2

zhangchangchun 5 yıl önce
ebeveyn
işleme
166a6162ed

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

@@ -16,6 +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')->comment('商品ID');
             $table->timestamps();
             $table->softDeletes();
         });

+ 0 - 32
database/migrations/2019_04_28_072523_add_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 AddCmsSubjectProductTable extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::table('cms_subject_product', function (Blueprint $table) {
-            $table->integer('subject_id')->comment('专题ID');
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::table('cms_subject_product', function (Blueprint $table) {
-            $table->dropColumn(['subject_id']);
-        });
-    }
-}

+ 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']);
-        });
-    }
-}