Total Complexity | 4 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class m3_template_locations_schema extends \phpbb\db\migration\migration |
||
|
|||
14 | { |
||
15 | /** |
||
16 | * {@inheritDoc} |
||
17 | */ |
||
18 | public function effectively_installed() |
||
19 | { |
||
20 | return $this->db_tools->sql_table_exists($this->table_prefix . 'ad_locations'); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * {@inheritDoc} |
||
25 | */ |
||
26 | public static function depends_on() |
||
27 | { |
||
28 | return array('\phpbb\ads\migrations\v10x\m1_initial_schema'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Add the ad_locations table schema to the database: |
||
33 | * ad_locations: |
||
34 | * ad_id |
||
35 | * location_id |
||
36 | * |
||
37 | * @return array Array of table schema |
||
38 | * @access public |
||
39 | */ |
||
40 | public function update_schema() |
||
41 | { |
||
42 | return array( |
||
43 | 'add_tables' => array( |
||
44 | $this->table_prefix . 'ad_locations' => array( |
||
45 | 'COLUMNS' => array( |
||
46 | 'ad_id' => array('UINT', 0), |
||
47 | 'location_id' => array('VCHAR:255', ''), |
||
48 | ), |
||
49 | 'PRIMARY_KEY' => array('ad_id', 'location_id'), |
||
50 | ), |
||
51 | ), |
||
52 | ); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Drop the ad_locations table schema from the database |
||
57 | * |
||
58 | * @return array Array of table schema |
||
59 | * @access public |
||
60 | */ |
||
61 | public function revert_schema() |
||
66 | ), |
||
67 | ); |
||
68 | } |
||
69 | } |
||
70 |
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