Skip to content

Commit b8ce811

Browse files
committed
Add migration
1 parent 26cb29b commit b8ce811

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 1: Initial data changes to the database
15+
*/
16+
class m1_initial_data extends \phpbb\db\migration\migration
17+
{
18+
/**
19+
* Add Google Analytics data to the database.
20+
*
21+
* @return array Array of table data
22+
* @access public
23+
*/
24+
public function update_data()
25+
{
26+
return array(
27+
// Add our config table settings
28+
array('config.add', array('googleanalytics_id', '')),
29+
);
30+
}
31+
}

0 commit comments

Comments
 (0)