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

8.0.x
Dries 2012-12-07 12:57:03 -05:00
parent 9a8a42d1a9
commit 8f50acbcf4
3 changed files with 19 additions and 0 deletions

View File

@ -89,6 +89,10 @@ class SystemUpgradePathTest extends UpgradePathTestBase {
'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));

View File

@ -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.

View File

@ -103,6 +103,10 @@ db_insert('variable')->fields(array(
'name' => 'password_count_log2',
'value' => 'i:42;',
))
->values(array(
'name' => 'actions_max_stack',
'value' => 'i:42;',
))
->execute();
db_update('variable')