Completed
Branch release-3.2.0 (10f575)
by Daniel
03:11
created

m4_initial_module   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 22
rs 10
wmc 2
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