Fixed migration drop primary issue..
This commit is contained in:
parent
33754a0944
commit
c092c15376
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue