aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data/v310/dev.php
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2017-09-22 14:34:38 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2017-09-22 14:34:38 +0200
commit2592d597652242cc5e1299e3dcde53d31f35c4f1 (patch)
treef22b680051c765191c26834de43b1e4adbf0d58b /phpBB/phpbb/db/migration/data/v310/dev.php
parentd095e620c1b36d68206139c082881b32a5f6a6e6 (diff)
downloadforums-2592d597652242cc5e1299e3dcde53d31f35c4f1.tar
forums-2592d597652242cc5e1299e3dcde53d31f35c4f1.tar.gz
forums-2592d597652242cc5e1299e3dcde53d31f35c4f1.tar.bz2
forums-2592d597652242cc5e1299e3dcde53d31f35c4f1.tar.xz
forums-2592d597652242cc5e1299e3dcde53d31f35c4f1.zip
[ticket/15339] Use manual method when adding modules
This will fix cases where the module is deleted in later versions and the migrator thus cannot retrieve the info. PHPBB3-15339
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v310/dev.php')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/dev.php25
1 files changed, 21 insertions, 4 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/dev.php b/phpBB/phpbb/db/migration/data/v310/dev.php
index 250258eea7..9cc953ad8d 100644
--- a/phpBB/phpbb/db/migration/data/v310/dev.php
+++ b/phpBB/phpbb/db/migration/data/v310/dev.php
@@ -125,7 +125,9 @@ class dev extends \phpbb\db\migration\container_aware_migration
'ACP_GROUPS',
array(
'module_basename' => 'acp_groups',
- 'modes' => array('position'),
+ 'module_langname' => 'ACP_GROUPS_POSITION',
+ 'module_mode' => 'position',
+ 'module_auth' => 'acl_a_group',
),
)),
array('module.add', array(
@@ -133,7 +135,9 @@ class dev extends \phpbb\db\migration\container_aware_migration
'ACP_ATTACHMENTS',
array(
'module_basename' => 'acp_attachments',
- 'modes' => array('manage'),
+ 'module_langname' => 'ACP_MANAGE_ATTACHMENTS',
+ 'module_mode' => 'manage',
+ 'module_auth' => 'acl_a_attach',
),
)),
array('module.add', array(
@@ -141,7 +145,19 @@ class dev extends \phpbb\db\migration\container_aware_migration
'ACP_STYLE_MANAGEMENT',
array(
'module_basename' => 'acp_styles',
- 'modes' => array('install', 'cache'),
+ 'module_langname' => 'ACP_STYLES_INSTALL',
+ 'module_mode' => 'install',
+ 'module_auth' => 'acl_a_styles',
+ ),
+ )),
+ array('module.add', array(
+ 'acp',
+ 'ACP_STYLE_MANAGEMENT',
+ array(
+ 'module_basename' => 'acp_styles',
+ 'module_langname' => 'ACP_STYLES_CACHE',
+ 'module_mode' => 'cache',
+ 'module_auth' => 'acl_a_styles',
),
)),
array('module.add', array(
@@ -149,7 +165,8 @@ class dev extends \phpbb\db\migration\container_aware_migration
'UCP_PROFILE',
array(
'module_basename' => 'ucp_profile',
- 'modes' => array('autologin_keys'),
+ 'module_langname' => 'UCP_PROFILE_AUTOLOGIN_KEYS',
+ 'module_mode' => 'autologin_keys',
),
)),
// Module will be renamed later