Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8f50acbc
Commit
8f50acbc
authored
Dec 07, 2012
by
Dries
Browse files
Issue
#1788084
by andyceo, dawehner: Convert actions variable(s) to CMI - add upgrade path.
parent
9a8a42d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/modules/system/lib/Drupal/system/Tests/Upgrade/SystemUpgradePathTest.php
View file @
8f50acbc
...
...
@@ -89,6 +89,10 @@ public function testVariableUpgrade() {
'fallback_format'
=>
'plain_text'
);
$expected_config
[
'action.settings'
]
=
array
(
'recursion_limit'
=>
42
,
);
foreach
(
$expected_config
as
$file
=>
$values
)
{
$config
=
config
(
$file
);
$this
->
verbose
(
print_r
(
$config
->
get
(),
TRUE
));
...
...
core/modules/system/system.install
View file @
8f50acbc
...
...
@@ -2308,6 +2308,17 @@ function system_update_8039() {
update_variables_to_config
(
'system.performance'
,
$variable_map
);
}
/**
* Moves action_max_stack from variable to config.
*
* @ingroup config_upgrade
*/
function
system_update_8040
()
{
update_variables_to_config
(
'action.settings'
,
array
(
'actions_max_stack'
=>
'recursion_limit'
,
));
}
/**
* @} End of "defgroup updates-7.x-to-8.x".
* The next series of updates should start at 9000.
...
...
core/modules/system/tests/upgrade/drupal-7.system.database.php
View file @
8f50acbc
...
...
@@ -103,6 +103,10 @@
'name'
=>
'password_count_log2'
,
'value'
=>
'i:42;'
,
))
->
values
(
array
(
'name'
=>
'actions_max_stack'
,
'value'
=>
'i:42;'
,
))
->
execute
();
db_update
(
'variable'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment