| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('permission_' . str_singular(config('laravel-acl.authTable')), function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('permission_id')->unsigned(); |
||
| 19 | $table->integer(str_singular(config('laravel-acl.authTable')) . '_id')->unsigned(); |
||
| 20 | $table->boolean('negated')->default(false); |
||
| 21 | $table->timestamps(); |
||
| 22 | |||
| 23 | $table->index('permission_id'); |
||
| 24 | $table->index(str_singular(config('laravel-acl.authTable')) . '_id'); |
||
| 25 | $table->index('negated'); |
||
| 26 | |||
| 27 | $table->foreign('permission_id')->references('id')->on('permissions'); |
||
| 28 | $table->foreign(str_singular(config('laravel-acl.authTable')) . '_id')->references('id')->on(config('laravel-acl.authTable')); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | |||
| 47 |