Completed
Push — 3.2.x ( f92b10...befb8c )
by Erwan
10s
created

remove_rewrite_conf::update_data()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * phpBB Directory extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2017 ErnadoO <http://www.phpbb-services.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace ernadoo\phpbbdirectory\migrations\v20x;
12
13
class remove_rewrite_conf extends \phpbb\db\migration\migration
14
{
15
	static public function depends_on()
16
	{
17
		return array(
18
			'\ernadoo\phpbbdirectory\migrations\v10x\v1_0_0',
19
		);
20
	}
21
22
	public function update_data()
23
	{
24
		return array(
25
			array('config.remove', array('dir_activ_rewrite')),
26
		);
27
	}
28
29
	public function revert_data()
30
	{
31
		return array(
32
			array('config.add', array('dir_activ_rewrite', '0')),
33
		);
34
	}
35
}
36