Passed
Pull Request — develop-3.2.x (#54)
by Mario
05:24 queued 03:13
created

v320_m7_update_data::update_data()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 *
4
 * PayPal Donation extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2015 Skouat
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace skouat\ppde\migrations\v32x;
12
13
class v320_m7_update_data extends \phpbb\db\migration\migration
14
{
15
	public static function depends_on()
16
	{
17
		return array('\skouat\ppde\migrations\v32x\v320_m6_update_data');
18
	}
19
20
	public function update_data()
21
	{
22
		return array(
23
			// INTL Settings
24
			array('config.add', array('ppde_default_locale', '')),
25
			array('config.add', array('ppde_intl_detected', false)),
26
			array('config.add', array('ppde_intl_version', '')),
27
			array('config.add', array('ppde_intl_version_valid', false)),
28
			array('config.update', array('ppde_first_start', true)),
29
		);
30
	}
31
}
32