From 0ad4b7d20b4cc4efed890d6903e9720e0a4bce95 Mon Sep 17 00:00:00 2001 From: SEB Fotografie - soeren Date: Wed, 17 Sep 2025 20:40:54 +0200 Subject: [PATCH] Add tenant_id to photos table migration to fix DemoPhotosSeeder error (missing column in Multi-Tenancy setup). Update migration to include foreign key for isolation. --- ...9_17_183633_add_status_to_events_table.php | 28 +++++++++++++++++++ ...7_184044_add_tenant_id_to_photos_table.php | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 database/migrations/2025_09_17_183633_add_status_to_events_table.php create mode 100644 database/migrations/2025_09_17_184044_add_tenant_id_to_photos_table.php diff --git a/database/migrations/2025_09_17_183633_add_status_to_events_table.php b/database/migrations/2025_09_17_183633_add_status_to_events_table.php new file mode 100644 index 0000000..e4eaf0b --- /dev/null +++ b/database/migrations/2025_09_17_183633_add_status_to_events_table.php @@ -0,0 +1,28 @@ +string('status')->default('draft')->after('is_active'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('events', function (Blueprint $table) { + $table->dropColumn('status'); + }); + } +}; diff --git a/database/migrations/2025_09_17_184044_add_tenant_id_to_photos_table.php b/database/migrations/2025_09_17_184044_add_tenant_id_to_photos_table.php new file mode 100644 index 0000000..7bf3157 --- /dev/null +++ b/database/migrations/2025_09_17_184044_add_tenant_id_to_photos_table.php @@ -0,0 +1,28 @@ +