Fixed migration drop primary issue..

This commit is contained in:
Cüneyt Şentürk 2024-01-31 13:31:57 +03:00
parent 33754a0944
commit c092c15376
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,7 @@ return new class extends Migration
public function up()
{
Schema::table('user_roles', function (Blueprint $table) {
$table->dropPrimary(['user_id', 'role_id', 'user_type']);
$table->primary(['user_id', 'role_id']);
$table->dropPrimary('user_type');
});
Schema::table('user_roles', function (Blueprint $table) {