aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorPayBas <contact@paybas.com>2014-05-17 11:20:37 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-11-01 16:26:34 +0100
commit6ccffec90695becd92d1144f6cbd9ef72f0d9b51 (patch)
treed6438cb08200e8e2d001201c53e2ba8285894b9f /phpBB/phpbb/db
parentce35aa8b0b90870608a5b0782a36c6aedad8c7e4 (diff)
downloadforums-6ccffec90695becd92d1144f6cbd9ef72f0d9b51.tar
forums-6ccffec90695becd92d1144f6cbd9ef72f0d9b51.tar.gz
forums-6ccffec90695becd92d1144f6cbd9ef72f0d9b51.tar.bz2
forums-6ccffec90695becd92d1144f6cbd9ef72f0d9b51.tar.xz
forums-6ccffec90695becd92d1144f6cbd9ef72f0d9b51.zip
[ticket/12559] Add forum setting to limit subforum legend
Squashed all commits, they were basically just typos and errors PHPBB3-12559
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/forums_legend_limit.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/forums_legend_limit.php b/phpBB/phpbb/db/migration/data/v310/forums_legend_limit.php
new file mode 100644
index 0000000000..9bc8ad9044
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/forums_legend_limit.php
@@ -0,0 +1,45 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2014 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class forums_legend_limit extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ return $this->db_tools->sql_column_exists($this->table_prefix . 'forums', 'display_subforum_limit');
+ }
+
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v310\beta3');
+ }
+
+ public function update_schema()
+ {
+ return array(
+ 'add_columns' => array(
+ $this->table_prefix . 'forums' => array(
+ 'display_subforum_limit' => array('BOOL', 0, 'after' => 'display_subforum_list'),
+ ),
+ ),
+ );
+ }
+
+ public function revert_schema()
+ {
+ return array(
+ 'drop_columns' => array(
+ $this->table_prefix . 'forums' => array(
+ 'display_subforum_limit',
+ ),
+ ),
+ );
+ }
+}