Version 2.0.0-RC4
This commit is contained in:
@@ -13,9 +13,6 @@ namespace dmzx\mchat\migrations;
|
||||
|
||||
class mchat_2_0_0_rc3 extends \phpbb\db\migration\migration
|
||||
{
|
||||
/** @const string */
|
||||
const MCHAT_VERSION = '2.0.0-RC3';
|
||||
|
||||
/** @var array */
|
||||
protected $mchat_config = null;
|
||||
|
||||
@@ -24,11 +21,6 @@ class mchat_2_0_0_rc3 extends \phpbb\db\migration\migration
|
||||
return array('\phpbb\db\migration\data\v31x\v317pl1');
|
||||
}
|
||||
|
||||
public function effectively_installed()
|
||||
{
|
||||
return isset($this->config['mchat_version']) && version_compare($this->config['mchat_version'], self::MCHAT_VERSION, '>=');
|
||||
}
|
||||
|
||||
protected function get_config()
|
||||
{
|
||||
if ($this->mchat_config == null)
|
||||
@@ -62,7 +54,7 @@ class mchat_2_0_0_rc3 extends \phpbb\db\migration\migration
|
||||
}
|
||||
|
||||
return array_merge($update_data, array(
|
||||
array('config.add', array('mchat_version', self::MCHAT_VERSION)),
|
||||
array('config.add', array('mchat_version', '2.0.0-RC3')),
|
||||
|
||||
// Add user permissions
|
||||
array('permission.add', array('u_mchat_use', true)),
|
||||
|
||||
29
migrations/mchat_2_0_0_rc4.php
Normal file
29
migrations/mchat_2_0_0_rc4.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - mChat
|
||||
* @copyright (c) 2016 dmzx - http://www.dmzx-web.net
|
||||
* @copyright (c) 2016 kasimi
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
namespace dmzx\mchat\migrations;
|
||||
|
||||
class mchat_2_0_0_rc4 extends \phpbb\db\migration\migration
|
||||
{
|
||||
static public function depends_on()
|
||||
{
|
||||
return array(
|
||||
'\dmzx\mchat\migrations\mchat_2_0_0_rc3',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
array('config.update', array('mchat_version', '2.0.0-RC4')),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user