Parcourir la source

fix email_comunications migration

Minus193 il y a 1 mois
Parent
commit
9badf26496

+ 1 - 1
database/migrations/2025_10_18_135607_create_email_messages.php

@@ -16,7 +16,7 @@ return new class extends TenantMigration
             $t->enum('status', ['draft', 'scheduled', 'processing', 'sent', 'failed', 'canceled'])->default('draft')->index();
             $t->dateTime('schedule_at')->nullable()->index();
             $t->dateTime('sent_at')->nullable();
-            $t->foreignId('created_by')->constrained('users')->cascadeOnDelete();
+            $t->foreignId('created_by')->index();
             $t->timestamps();
         });