First commit
This commit is contained in:
commit
3a568602da
36 changed files with 1584 additions and 0 deletions
40
migrations/dev_1.php
Executable file
40
migrations/dev_1.php
Executable file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace pedodev\tagging\migrations;
|
||||
|
||||
class dev_1 extends \phpbb\db\migration\migration
|
||||
{
|
||||
public function effectively_installed()
|
||||
{
|
||||
return isset($this->config['pedodev_tagging']);
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return ['\phpbb\db\migration\data\v330\v330'];
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
|
||||
['config.add', ['pedodev_tagging', 1]],
|
||||
|
||||
['module.add', [
|
||||
'acp',
|
||||
'ACP_CAT_DOT_MODS',
|
||||
'ACP_TAGGING_TITLE'
|
||||
]],
|
||||
|
||||
['module.add', [
|
||||
'acp',
|
||||
'ACP_TAGGING_TITLE',
|
||||
[
|
||||
'module_basename' => '\pedodev\tagging\acp\main_module',
|
||||
'modes' => ['settings'],
|
||||
],
|
||||
]],
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue