diff --git a/packages/Webkul/Product/src/Database/Migrations/2019_05_23_113407_add_remaining_column_in_product_flat_table.php b/packages/Webkul/Product/src/Database/Migrations/2019_05_23_113407_add_remaining_column_in_product_flat_table.php index 1e5417442..9e16cc870 100644 --- a/packages/Webkul/Product/src/Database/Migrations/2019_05_23_113407_add_remaining_column_in_product_flat_table.php +++ b/packages/Webkul/Product/src/Database/Migrations/2019_05_23_113407_add_remaining_column_in_product_flat_table.php @@ -14,25 +14,25 @@ class AddRemainingColumnInProductFlatTable extends Migration public function up() { Schema::table('product_flat', function (Blueprint $table) { - if (! Schema::hasColumn('short_description')) { + if (! Schema::hasColumn('product_flat', 'short_description')) { $table->text('short_description')->nullable(); } - if (! Schema::hasColumn('meta_title')) { + if (! Schema::hasColumn('product_flat', 'meta_title')) { $table->text('meta_title')->nullable(); } - if (! Schema::hasColumn('meta_keywords')) { + if (! Schema::hasColumn('product_flat', 'meta_keywords')) { $table->text('meta_keywords')->nullable(); } - if (! Schema::hasColumn('meta_description')) { + if (! Schema::hasColumn('product_flat', 'meta_description')) { $table->text('meta_description')->nullable(); } - if (! Schema::hasColumn('width')) { + if (! Schema::hasColumn('product_flat', 'width')) { $table->decimal('width', 12, 4)->nullable(); } - if (! Schema::hasColumn('height')) { + if (! Schema::hasColumn('product_flat', 'height')) { $table->decimal('height', 12, 4)->nullable(); } - if (! Schema::hasColumn('depth')) { + if (! Schema::hasColumn('product_flat', 'depth')) { $table->decimal('depth', 12, 4)->nullable(); } });