From b4682f3a725410c4608ab88f5f2b887a507c4f2a Mon Sep 17 00:00:00 2001 From: Dhruv Date: Sun, 8 Sep 2013 13:44:47 +0530 Subject: [PATCH 1/3] [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', + )), + ); + } +} From 34040771be42e5533737d2890bdecbb3373772cb Mon Sep 17 00:00:00 2001 From: Dhruv Date: Tue, 10 Sep 2013 22:57:24 +0530 Subject: [PATCH 2/3] [ticket/11344] Fix url of license PHPBB3-11344 --- .../phpbb/db/migration/data/310/acp_style_components_module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index e028feb88f..cefaf7c452 100644 --- a/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php +++ b/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php @@ -3,7 +3,7 @@ * * @package migration * @copyright (c) 2013 phpBB Group -* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * */ From 16d6dc2e7101aba6c08183f2acca2592ec8e04f5 Mon Sep 17 00:00:00 2001 From: Dhruv Date: Thu, 3 Oct 2013 21:09:02 +0530 Subject: [PATCH 3/3] [ticket/11344] Upgrade migration to namespaces PHPBB3-11344 --- .../data/{310 => v310}/acp_style_components_module.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename phpBB/phpbb/db/migration/data/{310 => v310}/acp_style_components_module.php (80%) diff --git a/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php b/phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php similarity index 80% rename from phpBB/phpbb/db/migration/data/310/acp_style_components_module.php rename to phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php index cefaf7c452..9f168f4fd6 100644 --- a/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php +++ b/phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php @@ -7,7 +7,9 @@ * */ -class phpbb_db_migration_data_310_acp_style_components_module extends phpbb_db_migration +namespace phpbb\db\migration\data\v310; + +class acp_style_components_module extends \phpbb\db\migration\migration { public function effectively_installed() { @@ -24,7 +26,7 @@ class phpbb_db_migration_data_310_acp_style_components_module extends phpbb_db_m static public function depends_on() { - return array('phpbb_db_migration_data_310_dev'); + return array('\phpbb\db\migration\data\v310\dev'); } public function update_data()