fixed user_role migration issue..
This commit is contained in:
parent
403b3d9e93
commit
07ce0973a2
@ -412,10 +412,12 @@ return new class extends Migration
|
|||||||
$table->integer('role_id')->unsigned();
|
$table->integer('role_id')->unsigned();
|
||||||
$table->string('user_type');
|
$table->string('user_type');
|
||||||
|
|
||||||
|
$table->primary(['user_id', 'role_id', 'user_type']);
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('user_roles', function (Blueprint $table) {
|
||||||
$table->foreign('role_id')->references('id')->on('roles')
|
$table->foreign('role_id')->references('id')->on('roles')
|
||||||
->onUpdate('cascade')->onDelete('cascade');
|
->onUpdate('cascade')->onDelete('cascade');
|
||||||
|
|
||||||
$table->primary(['user_id', 'role_id', 'user_type']);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Reconciliations
|
// Reconciliations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user