feat: ingredientds

This commit is contained in:
2026-05-18 14:51:25 +02:00
parent 7a907f2b17
commit 8c612452f2
8 changed files with 50 additions and 4 deletions
@@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('meal_posts', function (Blueprint $table) {
$table->string("type")->default('breakfast');
$table->string('type')->default('breakfast');
});
}
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('meal_post_ingredients', function (Blueprint $table) {
$table->unsignedInteger('quantity')->default(1);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('meal_post_ingredients', function (Blueprint $table) {
$table->dropColumn('quantity');
});
}
};