iMattPro /
TopicImagePreview
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * |
||
| 4 | * Topic Image Preview. An extension for the phpBB Forum Software package. |
||
| 5 | * |
||
| 6 | * @copyright (c) 2019, Matt Friedman |
||
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
||
| 8 | * |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace vse\topicimagepreview\migrations; |
||
| 12 | |||
| 13 | class ucp_option extends \phpbb\db\migration\migration |
||
|
0 ignored issues
–
show
|
|||
| 14 | { |
||
| 15 | public function effectively_installed() |
||
| 16 | { |
||
| 17 | return $this->db_tools->sql_column_exists($this->table_prefix . 'users', 'user_vse_tip'); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function depends_on() |
||
| 21 | { |
||
| 22 | return ['\vse\topicimagepreview\migrations\install_tip']; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function update_schema() |
||
| 26 | { |
||
| 27 | return [ |
||
| 28 | 'add_columns' => [ |
||
| 29 | $this->table_prefix . 'users' => [ |
||
| 30 | 'user_vse_tip' => ['BOOL', 1], |
||
| 31 | ], |
||
| 32 | ], |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function revert_schema() |
||
| 37 | { |
||
| 38 | return [ |
||
| 39 | 'drop_columns' => [ |
||
| 40 | $this->table_prefix . 'users' => [ |
||
| 41 | 'user_vse_tip', |
||
| 42 | ], |
||
| 43 | ], |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
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