1.0.0.rc1 update
This commit is contained in:
25
migrations/1.0.0.b1.php
Normal file
25
migrations/1.0.0.b1.php
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package mChat on Board3 Portal 1.0.0
|
||||||
|
* @copyright (c) 2015 Board3 Group ( www.board3.de )
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace dmzx\mchat\migrations;
|
||||||
|
|
||||||
|
class 1.0.0.b1 extends \phpbb\db\migration\migration
|
||||||
|
{
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array('\dmzx\mchat\migrations\install_mchat');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('config.add', array('mchat_on_portal', 1)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @package phpBB Extension - mChat
|
* @package phpBB Extension - mChat
|
||||||
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
|
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
|
||||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace dmzx\mchat\migrations;
|
namespace dmzx\mchat\migrations;
|
||||||
|
|
||||||
@@ -13,7 +14,7 @@ class install_mchat extends \phpbb\db\migration\migration
|
|||||||
{
|
{
|
||||||
public function effectively_installed()
|
public function effectively_installed()
|
||||||
{
|
{
|
||||||
return isset($this->config['mchat_version']) && version_compare($this->config['mchat_version'], '0.3.4', '>=');
|
return isset($this->config['mchat_version']) && version_compare($this->config['mchat_version'], '1.0.0-RC1', '>=');
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
@@ -25,7 +26,7 @@ class install_mchat extends \phpbb\db\migration\migration
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
// Add configs
|
// Add configs
|
||||||
array('config.add', array('mchat_version', '0.3.4')),
|
array('config.add', array('mchat_version', '1.0.0-RC1')),
|
||||||
array('config.add', array('mchat_archive_limit', 25)),
|
array('config.add', array('mchat_archive_limit', 25)),
|
||||||
array('config.add', array('mchat_avatars', 1)),
|
array('config.add', array('mchat_avatars', 1)),
|
||||||
array('config.add', array('mchat_bbcode_disallowed', '')),
|
array('config.add', array('mchat_bbcode_disallowed', '')),
|
||||||
@@ -46,6 +47,7 @@ class install_mchat extends \phpbb\db\migration\migration
|
|||||||
array('config.add', array('mchat_new_posts_reply', 0)),
|
array('config.add', array('mchat_new_posts_reply', 0)),
|
||||||
array('config.add', array('mchat_new_posts_topic', 0)),
|
array('config.add', array('mchat_new_posts_topic', 0)),
|
||||||
array('config.add', array('mchat_on_index', 1)),
|
array('config.add', array('mchat_on_index', 1)),
|
||||||
|
array('config.add', array('mchat_on_portal', 1)),
|
||||||
array('config.add', array('mchat_override_min_post_chars', 0)),
|
array('config.add', array('mchat_override_min_post_chars', 0)),
|
||||||
array('config.add', array('mchat_override_smilie_limit', 0)),
|
array('config.add', array('mchat_override_smilie_limit', 0)),
|
||||||
array('config.add', array('mchat_pause_on_input', 0)),
|
array('config.add', array('mchat_pause_on_input', 0)),
|
||||||
|
|||||||
Reference in New Issue
Block a user