Completed
Push — master ( 02e5e5...868d49 )
by Daniel
11:13
created

m4_initial_module::update_data()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2013 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\sitemaker\migrations\v20x;
11
12
/**
13
 * Initial schema changes needed for Extension installation
14
 */
15
class m4_initial_module extends \phpbb\db\migration\migration
16
{
17
	/**
18
	 * @inheritdoc
19
	 */
20
	public static function depends_on()
21
	{
22
		return array(
23
			'\blitze\sitemaker\migrations\converter\c1_remove_modules',
24
			'\blitze\sitemaker\migrations\v20x\m3_initial_permission',
25
		);
26
	}
27
28
	/**
29
	 * @inheritdoc
30
	 */
31
	public function update_data()
32
	{
33
		return array(
34
			// Add the Sitemaker tab in ucp/mcp. These will be used later
35
			array('module.add', array('ucp', 0, 'UCP_SITEMAKER_CONTENT')),
36
			array('module.add', array('mcp', 0, 'MCP_SITEMAKER_CONTENT')),
37
		);
38
	}
39
}
40