Completed
Push — develop ( 6f1d60...1f2a5d )
by Daniel
11:12
created

m3_initial_permission   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
rs 10
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 m3_initial_permission extends \phpbb\db\migration\migration
16
{
17
	/**
18
	 * @inheritdoc
19
	 */
20
	public function update_data()
21
	{
22
		return array(
23
			array('permission.add', array('a_sm_manage_blocks')),
24
			array('permission.permission_set', array('ROLE_ADMIN_STANDARD', 'a_sm_manage_blocks')),
25
		);
26
	}
27
28
	/**
29
	 * @inheritdoc
30
	 */
31
	public function revert_data()
32
	{
33
		return array(
34
			array('permission.remove', array('a_sm_manage_blocks')),
35
		);
36
	}
37
}
38