Completed
Pull Request — master (#60)
by
unknown
02:33
created

m2_track_user_id::depends_on()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
*
4
* Google Analytics extension for the phpBB Forum Software package.
5
*
6
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
7
* @license GNU General Public License, version 2 (GPL-2.0)
8
*
9
*/
10
11
namespace phpbb\googleanalytics\migrations\v10x;
12
13
/**
14
* Migration stage 2: Add default config value for user id tracking
15
*/
16
class m2_track_user_id extends \phpbb\db\migration\migration
17
{
18
	/**
19
	* Assign migration file dependencies for this migration
20
	*
21
	* @return array Array of migration files
22
	* @static
23
	* @access public
24
	*/
25
	static public function depends_on()
26
	{
27
		return array(
28
			'\phpbb\db\migration\data\v310\gold',
29
			'\phpbb\googleanalytics\migrations\v10x\m1_initial_data'
30
		);
31
	}
32
33
	/**
34
	* Add Google Analytics data to the database.
35
	*
36
	* @return array Array of table data
37
	* @access public
38
	*/
39
	public function update_data()
40
	{
41
		return array(
42
			array('config.add', array('googleanalytics_track_user_id', 0)),
43
		);
44
	}
45
}
46