aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-10-01 10:34:42 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-10-01 10:34:42 +0200
commitdceb334a0c495bb76b9f8309b950eb9b3875b4c1 (patch)
treeb913588f7d04139123936169c38f7c16b87a560b /phpBB/phpbb/db
parent0a58cca0318786a8239a73946ff5c3d56099eaf0 (diff)
parentb003019958aad3303abef8b4f70159cff2670600 (diff)
downloadforums-dceb334a0c495bb76b9f8309b950eb9b3875b4c1.tar
forums-dceb334a0c495bb76b9f8309b950eb9b3875b4c1.tar.gz
forums-dceb334a0c495bb76b9f8309b950eb9b3875b4c1.tar.bz2
forums-dceb334a0c495bb76b9f8309b950eb9b3875b4c1.tar.xz
forums-dceb334a0c495bb76b9f8309b950eb9b3875b4c1.zip
Merge branch 'develop-ascraeus' into develop
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/remove_acp_styles_cache.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/remove_acp_styles_cache.php b/phpBB/phpbb/db/migration/data/v310/remove_acp_styles_cache.php
new file mode 100644
index 0000000000..7b84539814
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/remove_acp_styles_cache.php
@@ -0,0 +1,51 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class remove_acp_styles_cache extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ $sql = 'SELECT module_id
+ FROM ' . MODULES_TABLE . "
+ WHERE module_class = 'acp'
+ AND module_langname = 'ACP_STYLES_CACHE'";
+ $result = $this->db->sql_query($sql);
+ $module_id = $this->db->sql_fetchfield('module_id');
+ $this->db->sql_freeresult($result);
+
+ return !$module_id;
+ }
+
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v310\rc4');
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('module.remove', array(
+ 'acp',
+ 'ACP_STYLE_MANAGEMENT',
+ array(
+ 'module_basename' => 'acp_styles',
+ 'module_langname' => 'ACP_STYLES_CACHE',
+ 'module_mode' => 'cache',
+ 'module_auth' => 'acl_a_styles',
+ ),
+ )),
+ );
+ }
+}