|
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\content\migrations\v30x; |
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* Initial schema changes needed for Extension installation |
|
14
|
|
|
*/ |
|
15
|
|
|
class m3_initial_module extends \phpbb\db\migration\migration |
|
16
|
|
|
{ |
|
17
|
|
|
/** |
|
18
|
|
|
* @inheritdoc |
|
19
|
|
|
*/ |
|
20
|
|
|
static public function depends_on() |
|
21
|
|
|
{ |
|
22
|
|
|
return array( |
|
23
|
|
|
'\blitze\content\migrations\v30x\m2_initial_data', |
|
24
|
|
|
'\blitze\content\migrations\converter\c2_update_data', |
|
25
|
|
|
'\blitze\content\migrations\converter\c3_update_tables', |
|
26
|
|
|
); |
|
27
|
|
|
} |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @inheritdoc |
|
31
|
|
|
*/ |
|
32
|
|
|
public function update_data() |
|
33
|
|
|
{ |
|
34
|
|
|
return array( |
|
35
|
|
|
array('module.add', array( |
|
36
|
|
|
'acp', 'ACP_SITEMAKER', array( |
|
37
|
|
|
'module_basename' => '\blitze\content\acp\content_module', |
|
38
|
|
|
'modes' => array('content'), |
|
39
|
|
|
), |
|
40
|
|
|
)), |
|
41
|
|
|
array('if', array( |
|
42
|
|
|
!array('module.exists', array('mcp', false, 'MCP_SITEMAKER_CONTENT')), |
|
43
|
|
|
array('module.add', array('mcp', '', 'MCP_SITEMAKER_CONTENT')), |
|
44
|
|
|
)), |
|
45
|
|
|
array('module.add', array( |
|
46
|
|
|
'mcp', 'MCP_SITEMAKER_CONTENT', array( |
|
47
|
|
|
'module_basename' => '\blitze\content\mcp\content_module', |
|
48
|
|
|
'modes' => array('content'), |
|
49
|
|
|
), |
|
50
|
|
|
)), |
|
51
|
|
|
array('if', array( |
|
52
|
|
|
!array('module.exists', array('mcp', false, 'UCP_SITEMAKER_CONTENT')), |
|
53
|
|
|
array('module.add', array('mcp', '', 'UCP_SITEMAKER_CONTENT')), |
|
54
|
|
|
)), |
|
55
|
|
|
array('module.add', array( |
|
56
|
|
|
'ucp', 'UCP_SITEMAKER_CONTENT', array( |
|
57
|
|
|
'module_basename' => '\blitze\content\ucp\content_module', |
|
58
|
|
|
'modes' => array('content'), |
|
59
|
|
|
), |
|
60
|
|
|
)), |
|
61
|
|
|
); |
|
62
|
|
|
} |
|
63
|
|
|
} |
|
64
|
|
|
|