use native Notification table and migration

This commit is contained in:
2026-03-28 16:13:46 +01:00
parent 93bfc19e6e
commit aa3d5f887d
@@ -1,32 +0,0 @@
<?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('notification_user', function (Blueprint $table) {
if (!Schema::hasColumn('notification_user', 'unread')) {
$table->boolean('unread')->default(true);
}
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('notification_user', function (Blueprint $table) {
if (Schema::hasColumn('notification_user', 'unread')) {
$table->dropColumn('unread');
}
});
}
};