From b4682f3a725410c4608ab88f5f2b887a507c4f2a Mon Sep 17 00:00:00 2001 From: Dhruv Date: Sun, 8 Sep 2013 13:44:47 +0530 Subject: [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 (limited to 'phpBB') 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', + )), + ); + } +} -- cgit v1.2.1 From 34040771be42e5533737d2890bdecbb3373772cb Mon Sep 17 00:00:00 2001 From: Dhruv Date: Tue, 10 Sep 2013 22:57:24 +0530 Subject: [ticket/11344] Fix url of license PHPBB3-11344 --- phpBB/phpbb/db/migration/data/310/acp_style_components_module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB') 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 * */ -- cgit v1.2.1 From 16d6dc2e7101aba6c08183f2acca2592ec8e04f5 Mon Sep 17 00:00:00 2001 From: Dhruv Date: Thu, 3 Oct 2013 21:09:02 +0530 Subject: [ticket/11344] Upgrade migration to namespaces PHPBB3-11344 --- .../data/310/acp_style_components_module.php | 40 --------------------- .../data/v310/acp_style_components_module.php | 42 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 40 deletions(-) delete mode 100644 phpBB/phpbb/db/migration/data/310/acp_style_components_module.php create mode 100644 phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php (limited to 'phpBB') 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 deleted file mode 100644 index cefaf7c452..0000000000 --- a/phpBB/phpbb/db/migration/data/310/acp_style_components_module.php +++ /dev/null @@ -1,40 +0,0 @@ -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', - )), - ); - } -} diff --git a/phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php b/phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php new file mode 100644 index 0000000000..9f168f4fd6 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/acp_style_components_module.php @@ -0,0 +1,42 @@ +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\v310\dev'); + } + + public function update_data() + { + return array( + array('module.remove', array( + 'acp', + false, + 'ACP_STYLE_COMPONENTS', + )), + ); + } +} -- cgit v1.2.1