remove user_role user_type column

This commit is contained in:
Cüneyt Şentürk 2022-07-20 19:41:11 +03:00
parent 25ba500fe9
commit 70f53b6355

View File

@ -410,12 +410,11 @@ return new class extends Migration
Schema::create('user_roles', function (Blueprint $table) { Schema::create('user_roles', function (Blueprint $table) {
$table->integer('user_id')->unsigned(); $table->integer('user_id')->unsigned();
$table->integer('role_id')->unsigned(); $table->integer('role_id')->unsigned();
$table->string('user_type');
$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']); $table->primary(['user_id', 'role_id']);
}); });
// Reconciliations // Reconciliations