Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | 10 | public static function defaultColumns(Blueprint $table) |
|
11 | { |
||
12 | 10 | $table->id(); |
|
13 | 10 | $table->string('type', 50)->default('default')->index(); |
|
14 | 10 | $table->string('page', 255)->index(); |
|
15 | 10 | $table->string('key', 100)->index(); |
|
16 | 10 | $table->text('value')->nullable(); |
|
17 | 10 | $table->timestamps(); |
|
18 | |||
19 | 10 | $table->index([ 'page', 'key', 'type' ]); |
|
20 | } |
||
22 |