iMattPro /
dbtool
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * |
||
| 4 | * Database Optimize & Repair Tool |
||
| 5 | * |
||
| 6 | * @copyright (c) 2013 Matt Friedman |
||
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
||
| 8 | * |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace vse\dbtool\migrations; |
||
| 12 | |||
| 13 | class remove_database_or extends \phpbb\db\migration\container_aware_migration |
||
|
0 ignored issues
–
show
|
|||
| 14 | { |
||
| 15 | public function effectively_installed() |
||
| 16 | { |
||
| 17 | return !isset($this->config['database_or_version']); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function depends_on() |
||
| 21 | { |
||
| 22 | return array('\phpbb\db\migration\data\v310\rc2'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function update_data() |
||
| 26 | { |
||
| 27 | // use module tool explicitly since module.exists does not work in 'if' |
||
| 28 | $module_tool = $this->container->get('migrator.tool.module'); |
||
| 29 | |||
| 30 | return array( |
||
| 31 | array('if', array( |
||
| 32 | $module_tool->exists('acp', false, 'ACP_DATABASE_OR', true), |
||
| 33 | array('module.remove', array('acp', false, 'ACP_DATABASE_OR')), |
||
| 34 | )), |
||
| 35 | |||
| 36 | array('if', array( |
||
| 37 | $this->config->offsetExists('database_or_version'), |
||
| 38 | array('config.remove', array('database_or_version')), |
||
| 39 | )), |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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