diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2013-09-08 13:44:47 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-10-03 21:02:34 +0530 |
commit | b4682f3a725410c4608ab88f5f2b887a507c4f2a (patch) | |
tree | 2aeb0cd859e12ee34c4fdc128cab1527a046355f /phpBB/phpbb/db/migration/data | |
parent | 49ce2c13b26e358b4ccef440094a8fa4b6b9afd7 (diff) | |
download | forums-b4682f3a725410c4608ab88f5f2b887a507c4f2a.tar forums-b4682f3a725410c4608ab88f5f2b887a507c4f2a.tar.gz forums-b4682f3a725410c4608ab88f5f2b887a507c4f2a.tar.bz2 forums-b4682f3a725410c4608ab88f5f2b887a507c4f2a.tar.xz forums-b4682f3a725410c4608ab88f5f2b887a507c4f2a.zip |
[ticket/11344] Add migration to remove acp_style_components module in 3.1
PHPBB3-11344
Diffstat (limited to 'phpBB/phpbb/db/migration/data')
-rw-r--r-- | phpBB/phpbb/db/migration/data/310/acp_style_components_module.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php b/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php new file mode 100644 index 0000000000..e028feb88f --- /dev/null +++ b/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php @@ -0,0 +1,40 @@ +<?php +/** +* +* @package migration +* @copyright (c) 2013 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 +* +*/ + +class phpbb_db_migration_data_310_acp_style_components_module extends phpbb_db_migration +{ + public function effectively_installed() + { + $sql = 'SELECT module_id + FROM ' . MODULES_TABLE . " + WHERE module_class = 'acp' + AND module_langname = 'ACP_STYLE_COMPONENTS'"; + $result = $this->db->sql_query($sql); + $module_id = $this->db->sql_fetchfield('module_id'); + $this->db->sql_freeresult($result); + + return $module_id == false; + } + + static public function depends_on() + { + return array('phpbb_db_migration_data_310_dev'); + } + + public function update_data() + { + return array( + array('module.remove', array( + 'acp', + false, + 'ACP_STYLE_COMPONENTS', + )), + ); + } +} |