diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-01-30 22:21:06 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-03-29 21:49:31 +0100 |
commit | 3c7ff1c417bd57ab71057fa3d880d58f1ee65f2a (patch) | |
tree | 3f35fd1b9d25d542907834fd6c0d0ed63729722b /phpBB/phpbb/db/migration/data | |
parent | 308e8b0c9689334ef45fad9a9ed0f0ae63746bc7 (diff) | |
download | forums-3c7ff1c417bd57ab71057fa3d880d58f1ee65f2a.tar forums-3c7ff1c417bd57ab71057fa3d880d58f1ee65f2a.tar.gz forums-3c7ff1c417bd57ab71057fa3d880d58f1ee65f2a.tar.bz2 forums-3c7ff1c417bd57ab71057fa3d880d58f1ee65f2a.tar.xz forums-3c7ff1c417bd57ab71057fa3d880d58f1ee65f2a.zip |
[ticket/12150] Add options to acp
PHPBB3-12150
Diffstat (limited to 'phpBB/phpbb/db/migration/data')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v310/prune_shadow_topics.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/prune_shadow_topics.php b/phpBB/phpbb/db/migration/data/v310/prune_shadow_topics.php new file mode 100644 index 0000000000..0aca897946 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/prune_shadow_topics.php @@ -0,0 +1,44 @@ +<?php +/** +* +* @package migration +* @copyright (c) 2014 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 +* +*/ + +namespace phpbb\db\migration\data\v310; + +class prune_shadow_topics extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array('\phpbb\db\migration\data\v310\dev'); + } + + public function update_schema() + { + return array( + 'add_columns' => array( + $this->table_prefix . 'forums' => array( + 'enable_shadow_topic_prune' => array('BOOL', 0, 'after' => 'prune_freq'), + 'prune_shadow_topic_days' => array('UINT', 7, 'after' => 'enable_shadow_topic_prune'), + 'prune_shadow_topic_freq' => array('UINT', 1, 'after' => 'prune_shadow_topic_freq'), + ), + ), + ); + } + + public function revert_schema() + { + return array( + 'drop_columns' => array( + $this->table_prefix . 'forums' => array( + 'enable_shadow_topic_prune', + 'prune_shadow_topic_days', + 'prune_shadow_topic_freq', + ), + ), + ); + } +} |