Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class AddApiAuthAccessEventsResponseTimeColumn extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | $tableName = config('apikey.table_name.api_auth_access_events'); |
||
17 | |||
18 | Schema::table($tableName, function(Blueprint $table) { |
||
19 | $table->decimal('response_time', 8, 4)->default(0)->comment('响应时间')->after('params'); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Reverse the migrations. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function down() |
||
34 | }); |
||
35 | } |
||
37 |
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