diff --git a/backend/database/migrations/2024_12_09_234323_add_notes_to_attendees_table.php b/backend/database/migrations/2024_12_09_234323_add_notes_to_attendees_table.php index 6ad2a1de..4b5042f8 100644 --- a/backend/database/migrations/2024_12_09_234323_add_notes_to_attendees_table.php +++ b/backend/database/migrations/2024_12_09_234323_add_notes_to_attendees_table.php @@ -8,6 +8,9 @@ public function up(): void { Schema::table('attendees', static function (Blueprint $table) { + if (Schema::hasColumn('attendees', 'notes')) { + return; + } $table->text('notes')->nullable(); }); } @@ -15,6 +18,9 @@ public function up(): void public function down(): void { Schema::table('attendees', static function (Blueprint $table) { + if (!Schema::hasColumn('attendees', 'notes')) { + return; + } $table->dropColumn('notes'); }); }