We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 31-41 (lines=11) @@ | ||
| 28 | $table->timestamps(); |
|
| 29 | }); |
|
| 30 | ||
| 31 | Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
| 32 | $table->integer('permission_id')->unsigned(); |
|
| 33 | $table->morphs('model'); |
|
| 34 | ||
| 35 | $table->foreign('permission_id') |
|
| 36 | ->references('id') |
|
| 37 | ->on($tableNames['permissions']) |
|
| 38 | ->onDelete('cascade'); |
|
| 39 | ||
| 40 | $table->primary(['permission_id', 'model_id', 'model_type']); |
|
| 41 | }); |
|
| 42 | ||
| 43 | Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames) { |
|
| 44 | $table->integer('role_id')->unsigned(); |
|
| @@ 43-53 (lines=11) @@ | ||
| 40 | $table->primary(['permission_id', 'model_id', 'model_type']); |
|
| 41 | }); |
|
| 42 | ||
| 43 | Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames) { |
|
| 44 | $table->integer('role_id')->unsigned(); |
|
| 45 | $table->morphs('model'); |
|
| 46 | ||
| 47 | $table->foreign('role_id') |
|
| 48 | ->references('id') |
|
| 49 | ->on($tableNames['roles']) |
|
| 50 | ->onDelete('cascade'); |
|
| 51 | ||
| 52 | $table->primary(['role_id', 'model_id', 'model_type']); |
|
| 53 | }); |
|
| 54 | ||
| 55 | Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
| 56 | $table->integer('permission_id')->unsigned(); |
|