From b4682f3a725410c4608ab88f5f2b887a507c4f2a Mon Sep 17 00:00:00 2001 From: Dhruv Date: Sun, 8 Sep 2013 13:44:47 +0530 Subject: [PATCH] [ticket/11344] Add migration to remove acp_style_components module in 3.1 PHPBB3-11344 --- .../data/310/acp_style_components_module.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 phpBB/phpbb/db/migration/data/310/acp_style_components_module.php 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 @@ +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', + )), + ); + } +}