Version 2.0.1
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace dmzx\mchat\migrations;
|
||||
|
||||
use \phpbb\db\migration\migration;
|
||||
use phpbb\db\migration\migration;
|
||||
|
||||
class mchat_2_0_0 extends migration
|
||||
{
|
||||
|
||||
@@ -135,28 +135,39 @@ class mchat_2_0_0_rc3 extends migration
|
||||
array('module.add', array(
|
||||
'acp',
|
||||
'ACP_CAT_DOT_MODS',
|
||||
'ACP_CAT_MCHAT'
|
||||
'ACP_CAT_MCHAT',
|
||||
)),
|
||||
|
||||
// Add ACP preferences module
|
||||
array('module.add', array(
|
||||
'acp',
|
||||
'ACP_CAT_MCHAT',
|
||||
array('module_basename' => '\dmzx\mchat\acp\acp_mchat_module'),
|
||||
array(
|
||||
'module_basename' => '\dmzx\mchat\acp\acp_mchat_module',
|
||||
'modes' => array(
|
||||
'globalsettings',
|
||||
'globalusersettings',
|
||||
),
|
||||
),
|
||||
)),
|
||||
|
||||
// Add UCP category
|
||||
array('module.add', array(
|
||||
'ucp',
|
||||
0,
|
||||
'UCP_MCHAT_CONFIG'
|
||||
'UCP_MCHAT_CONFIG',
|
||||
)),
|
||||
|
||||
// Add UCP preferences module
|
||||
array('module.add', array(
|
||||
'ucp',
|
||||
'UCP_MCHAT_CONFIG',
|
||||
array('module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module'),
|
||||
array(
|
||||
'module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module',
|
||||
'modes' => array(
|
||||
'configuration',
|
||||
),
|
||||
),
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
32
migrations/mchat_2_0_1.php
Normal file
32
migrations/mchat_2_0_1.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - mChat
|
||||
* @copyright (c) 2017 kasimi - https://kasimi.net
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
namespace dmzx\mchat\migrations;
|
||||
|
||||
use dmzx\mchat\core\settings;
|
||||
use phpbb\db\migration\migration;
|
||||
|
||||
class mchat_2_0_1 extends migration
|
||||
{
|
||||
static public function depends_on()
|
||||
{
|
||||
return array(
|
||||
'\dmzx\mchat\migrations\mchat_2_0_0',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
array('config.update', array('mchat_version', '2.0.1')),
|
||||
array('config.add', array('mchat_archive_sort', settings::ARCHIVE_SORT_BOTTOM_TOP)),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user