diff options
author | David Colón <david@davidiq.com> | 2017-09-24 21:32:53 -0400 |
---|---|---|
committer | David Colón <david@davidiq.com> | 2017-10-26 16:09:01 -0400 |
commit | e55480385b5c7d49030d3f380bf2c1349695033b (patch) | |
tree | 70c0ac83258b42f7495fb76e63b9d6bbf969887d /phpBB/phpbb | |
parent | dc5267728bd3352e3546ac9819365cadf5aaaae9 (diff) | |
download | forums-e55480385b5c7d49030d3f380bf2c1349695033b.tar forums-e55480385b5c7d49030d3f380bf2c1349695033b.tar.gz forums-e55480385b5c7d49030d3f380bf2c1349695033b.tar.bz2 forums-e55480385b5c7d49030d3f380bf2c1349695033b.tar.xz forums-e55480385b5c7d49030d3f380bf2c1349695033b.zip |
[ticket/15372] Migration for adding f_list_topic permission
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/f_list_topics_permission_add.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/f_list_topics_permission_add.php b/phpBB/phpbb/db/migration/data/v32x/f_list_topics_permission_add.php new file mode 100644 index 0000000000..175c27da03 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v32x/f_list_topics_permission_add.php @@ -0,0 +1,38 @@ +<?php +/** + * + * This file is part of the phpBB Forum Software package. + * + * @copyright (c) phpBB Limited <https://www.phpbb.com> + * @license GNU General Public License, version 2 (GPL-2.0) + * + * For full copyright and license information, please see + * the docs/CREDITS.txt file. + * + */ + +namespace phpbb\db\migration\data\v32x; + +class f_list_topics_permission_add extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v32x\v321', + ); + } + + public function update_data() + { + return array( + array('permission.add', array('f_list_topics', false)), + ); + } + + public function revert_data() + { + return array( + array('permission.remove', array('f_list_topics', false)), + ); + } +} |