diff --git a/database/migrations/2021_04_20_080518_remove_sofdelete_from_products_table.php b/database/migrations/2021_04_20_080518_remove_sofdelete_from_products_table.php deleted file mode 100644 index 3fd63de..0000000 --- a/database/migrations/2021_04_20_080518_remove_sofdelete_from_products_table.php +++ /dev/null @@ -1,51 +0,0 @@ -dropForeign('food_products_product_id_foreign'); - $table->foreign('product_id') - ->references('id')->on('products') - ->onDelete('cascade'); - }); - - Product::onlyTrashed()->forceDelete(); - - Schema::table('products', function (Blueprint $table) { - $table->dropSoftDeletes(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('food_products', function (Blueprint $table) { - $table->dropForeign('food_products_product_id_foreign'); - $table->foreign('product_id') - ->references('id')->on('products'); - }); - - Schema::table('products', function (Blueprint $table) { - $table->softDeletes(); - }); - } -}