diff --git a/database/migrations/2022_02_08_001430_create_ingredients_table.php b/database/migrations/2022_02_08_001430_create_ingredients_table.php deleted file mode 100644 index 2f901b0..0000000 --- a/database/migrations/2022_02_08_001430_create_ingredients_table.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php - -use Illuminate\Database\Migrations\Migration; -use Illuminate\Database\Schema\Blueprint; -use Illuminate\Support\Facades\Schema; - -class CreateIngredientsTable extends Migration -{ - /** - * Run the migrations. - * - * @return void - */ - public function up() - { - Schema::create('ingredients', function (Blueprint $table) { - $table->id(); - $table->string('name'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('ingredients'); - } -} diff --git a/database/migrations/2022_02_08_003527_create_recipe_ingredient_table.php b/database/migrations/2022_02_08_003527_create_recipe_ingredient_table.php index ba5dc31..f02bbe3 100644 --- a/database/migrations/2022_02_08_003527_create_recipe_ingredient_table.php +++ b/database/migrations/2022_02_08_003527_create_recipe_ingredient_table.php @@ -16,7 +16,6 @@ class CreateRecipeIngredientTable extends Migration Schema::create('recipe_ingredient', function (Blueprint $table) { $table->id(); $table->unsignedInteger('recipe_id'); - $table->unsignedInteger('ingredient_id'); $table->string('name'); $table->float('quantity'); $table->string('measurement'); @@ -24,7 +23,6 @@ class CreateRecipeIngredientTable extends Migration $table->timestamps(); $table->foreign('recipe_id')->references('id')->on('recipes'); - $table->foreign('ingredient_id')->references('id')->on('ingredients'); }); }