Passed
Branch master (af0060)
by Matt
04:03 queued 02:19
created

install_1_1_0::depends_on()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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 install_1_1_0 extends \phpbb\db\migration\migration
0 ignored issues
show
Bug introduced by
The type phpbb\db\migration\migration was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
{
15
	public function effectively_installed()
16
	{
17
		return isset($this->config['dbtool_version']) && version_compare($this->config['dbtool_version'], '1.1.0', '>=');
18
	}
19
20
	public static function depends_on()
21
	{
22
		return array('\vse\dbtool\migrations\remove_database_or');
23
	}
24
25
	public function update_data()
26
	{
27
		return array(
28
			array('module.add', array(
29
				'acp',
30
				'ACP_CAT_DATABASE',
31
				array(
32
					'module_basename'	=> '\vse\dbtool\acp\dbtool_module',
33
					'module_langname'	=> 'ACP_OPTIMIZE_REPAIR',
34
					'module_mode'		=> 'view',
35
					'module_auth'		=> 'ext_vse/dbtool && acl_a_backup',
36
					'after'				=> 'ACP_RESTORE', // Will be placed after ACP_RESTORE
37
				)
38
			)),
39
40
			array('config.add', array('dbtool_version', '1.1.0')),
41
		);
42
	}
43
}
44