Viewlegend migrations Datei v_2_4_0.php
von Talk19zehn (22.06.2025 11:12)
- Beschreibung:
- Erneuerte migrations v_2_4_0.php
- Snippet erstellt:
- 22.06.2025 11:12
- Snippet wird automatisch gelöscht:
- 22.07.2025 11:12
- Dein Code:
-
<?php
/**
*
* Viewlegend extension for the phpBB Forum Software package.
* @copyright (c) viewlegend add v240 2025 Talk19Zehn https://www.ongray-design.de and 2025 Kirk https://kirk-phpbb.com
* @license GNU General Public License, version 2 (GPL-2.0-only)
*
*/
namespace ongray\viewlegend\migrations;
class v_2_4_0 extends \phpbb\db\migration\migration
{
public static function depends_on()
{
return ['\phpbb\db\migration\data\v330\v330'];
}
public function update_data()
{
return [
// Add configs
['config.add', ['vl_enable', 1]],
['config.add', ['vl_adminmode', 0]],
['config.add', ['show_vl_mini', 1]],
// Add ACP modules
['module.add', [
'acp',
'ACP_CAT_DOT_MODS',
'ACP_VIEWLEGEND'
]],
['module.add', [
'acp',
'ACP_VIEWLEGEND',
[
'module_basename' => '\ongray\viewlegend\acp\viewlegend_module',
'module_langname' => 'VIEWLEGEND_SETTINGS',
'module_mode' => 'config',
'module_auth' => 'ext_ongray/viewlegend && acl_a_board',
],
]],
];
}
}
Quellcode