1 system.install | system_update_1031() |
Drop the actions table, no longer used by Backdrop.
Related topics
File
- core/
modules/ system/ system.install, line 2653 - Install, update and uninstall functions for the system module.
Code
function system_update_1031() {
// The actions UI and table were removed in Backdrop. Module-provided actions
// may still be defined through hook_action_info(), including potentially
// configurable actions, but core no longer attempts to manage them directly.
if (db_table_exists('actions')) {
db_drop_table('actions');
}
// Actions had been given it's own config file, now it is part of system.core.
$action_config = config('system.action');
if (!$action_config->isNew()) {
$config = config('system.core');
$config->set('action_recursion_limit', $action_config->get('action_recursion_limit'));
$config->save();
$action_config->delete();
}
}