From 213ce1e953e3a0c09ac1e580fa3d8671c1c075aa Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 Mar 2024 20:43:03 +0200 Subject: [PATCH] m --- .../migrations/2024_03_18_160355_create_permission_tables.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database/migrations/2024_03_18_160355_create_permission_tables.php b/database/migrations/2024_03_18_160355_create_permission_tables.php index b865d48..13a4669 100644 --- a/database/migrations/2024_03_18_160355_create_permission_tables.php +++ b/database/migrations/2024_03_18_160355_create_permission_tables.php @@ -28,6 +28,7 @@ public function up(): void $table->bigIncrements('id'); // permission id $table->string('name'); // For MySQL 8.0 use string('name', 125); $table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125); + $table->string('table')->nullable(); $table->timestamps(); $table->unique(['name', 'guard_name']); @@ -41,6 +42,8 @@ public function up(): void } $table->string('name'); // For MySQL 8.0 use string('name', 125); $table->string('guard_name'); // For MySQL 8.0 use string('guard_name', 125); + $table->string('display_name')->nullable(); + $table->text('description')->nullable(); $table->timestamps(); if ($teams || config('permission.testing')) { $table->unique([$columnNames['team_foreign_key'], 'name', 'guard_name']);