Conditions | 1 |
Paths | 1 |
Total Lines | 41 |
Code Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | public function up() |
||
9 | { |
||
10 | Schema::create('files', function (Blueprint $table) { |
||
11 | $table->id(); |
||
12 | $table->uuid()->unique(); |
||
13 | $table->nullableMorphs('model'); |
||
14 | |||
15 | $table->string('category')->nullable(); |
||
16 | $table->string('filename'); |
||
17 | $table->string('path'); |
||
18 | $table->string('original_filename'); |
||
19 | $table->string('mime_type'); |
||
20 | $table->unsignedBigInteger('size'); |
||
21 | $table->string('source')->nullable(); |
||
22 | |||
23 | $table->timestamps(); |
||
24 | $table->softDeletes(); |
||
25 | |||
26 | $table->index([ |
||
27 | 'id', |
||
28 | 'deleted_at', |
||
29 | ], 'idx_files_find_by_id'); |
||
30 | |||
31 | $table->index([ |
||
32 | 'uuid', |
||
33 | 'deleted_at', |
||
34 | ], 'idx_files_find_by_uuid'); |
||
35 | |||
36 | // normal search |
||
37 | $table->index([ |
||
38 | 'model_id', |
||
39 | 'model_type', |
||
40 | 'deleted_at', |
||
41 | ], 'idx_files_normal_search'); |
||
42 | |||
43 | $table->index([ |
||
44 | 'model_id', |
||
45 | 'model_type', |
||
46 | 'category', |
||
47 | 'deleted_at', |
||
48 | ], 'idx_files_category_search'); |
||
49 | }); |
||
52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths