Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Mar 18, 2024
1 parent cdd7cc9 commit 213ce1e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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']);
Expand Down

0 comments on commit 213ce1e

Please sign in to comment.