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/phpbb/db/migration') 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