fix: make notifications migration idempotent

This commit is contained in:
F4ilji
2026-09-18 02:58:52 +05:00
parent 7ff860feca
commit 8af94388ab
@@ -11,6 +11,7 @@ return new class extends Migration
*/ */
public function up(): void public function up(): void
{ {
if (!Schema::hasTable('notifications')) {
Schema::create('notifications', function (Blueprint $table) { Schema::create('notifications', function (Blueprint $table) {
$table->uuid('id')->primary(); $table->uuid('id')->primary();
$table->string('type'); $table->string('type');
@@ -20,6 +21,7 @@ return new class extends Migration
$table->timestamps(); $table->timestamps();
}); });
} }
}
/** /**
* Reverse the migrations. * Reverse the migrations.