Total Complexity | 10 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class M190814022727RequestId extends Migration |
||
12 | { |
||
13 | /** |
||
14 | * @var DbTarget[] Targets to create log table for |
||
15 | */ |
||
16 | private $dbTargets = []; |
||
17 | |||
18 | /** |
||
19 | * @throws InvalidConfigException |
||
20 | * @return DbTarget[] |
||
21 | */ |
||
22 | protected function getDbTargets() |
||
48 | } |
||
49 | |||
50 | public function up() |
||
51 | { |
||
52 | foreach ($this->getDbTargets() as $target) { |
||
53 | $this->db = $target->db; |
||
54 | $this->addColumn($target->logTable, 'request_id', $this->char(13)->notNull()->defaultValue('')->after('id')); |
||
55 | $this->createIndex('idx_request_id', $target->logTable, 'request_id'); |
||
56 | } |
||
57 | } |
||
58 | |||
59 | public function down() |
||
65 | } |
||
66 | } |
||
68 |
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