Extensions
This commit is contained in:
52
ext/phpbbstudio/dice/migrations/install_acp_module.php
Normal file
52
ext/phpbbstudio/dice/migrations/install_acp_module.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
namespace phpbbstudio\dice\migrations;
|
||||
|
||||
/**
|
||||
* phpBB Studio's Dice Migration: Install ACP module.
|
||||
*/
|
||||
class install_acp_module extends \phpbb\db\migration\migration
|
||||
{
|
||||
/**
|
||||
* Assign migration file dependencies for this migration.
|
||||
*
|
||||
* @return array Array of migration files
|
||||
* @access public
|
||||
* @static
|
||||
*/
|
||||
static public function depends_on()
|
||||
{
|
||||
return ['\phpbb\db\migration\data\v32x\v325'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the dice extension modules to the database.
|
||||
*
|
||||
* @return array
|
||||
* @access public
|
||||
*/
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
['module.add', [
|
||||
'acp',
|
||||
'ACP_CAT_DOT_MODS',
|
||||
'ACP_DICE_CAT',
|
||||
]],
|
||||
['module.add', [
|
||||
'acp',
|
||||
'ACP_DICE_CAT',
|
||||
[
|
||||
'module_basename' => '\phpbbstudio\dice\acp\dice_module',
|
||||
'modes' => ['dashboard'],
|
||||
],
|
||||
]],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user