Skip to content

Commit

Permalink
Fix unique name index
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed Dec 15, 2023
1 parent 166a8c2 commit 0d37ffb
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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('permissions', function (Blueprint $table) {
$table->dropUnique(['name', 'guard_name']);
$table->unique(['name', 'guard_name']);
});
}
};

0 comments on commit 0d37ffb

Please sign in to comment.