29 lines
813 B
PHP
29 lines
813 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if(!Schema::hasTable('notifications'))
|
|
{
|
|
Schema::create('notifications', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('module')->nullable();
|
|
$table->string('type', 188)->nullable();
|
|
$table->string('action')->nullable();
|
|
$table->string('status')->nullable();
|
|
$table->string('permissions')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
}
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('notifications');
|
|
}
|
|
};
|