Commit 8f50acbc authored by Dries's avatar Dries

Issue #1788084 by andyceo, dawehner: Convert actions variable(s) to CMI - add upgrade path.

parent 9a8a42d1
......@@ -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));
......
......@@ -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.
......
......@@ -103,6 +103,10 @@
'name' => 'password_count_log2',
'value' => 'i:42;',
))
->values(array(
'name' => 'actions_max_stack',
'value' => 'i:42;',
))
->execute();
db_update('variable')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment