From b81bf585a45227affdd7c63e80cc753c8637bc0b Mon Sep 17 00:00:00 2001 From: Olivier Legat Date: Mon, 26 Apr 2021 16:14:44 +0200 Subject: [PATCH] make no_art unique in food_product table --- ..._unique_no_art_inf_food_products_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2021_04_26_161004_make_unique_no_art_inf_food_products_table.php diff --git a/database/migrations/2021_04_26_161004_make_unique_no_art_inf_food_products_table.php b/database/migrations/2021_04_26_161004_make_unique_no_art_inf_food_products_table.php new file mode 100644 index 00000000..cd0031de --- /dev/null +++ b/database/migrations/2021_04_26_161004_make_unique_no_art_inf_food_products_table.php @@ -0,0 +1,34 @@ +unique('no_art'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + Schema::table('food_products', function (Blueprint $table) { + + }); + } +}