// Make sure that the bootstrap cache is cleared as that might contain
// incompatible data structures.
cache('bootstrap')->flush();
// Retrieve all installed extensions from the {system} table.
// Uninstalled extensions are ignored and not converted.
$result=db_query('SELECT name, status, weight, schema_version, type FROM {system} WHERE type = :theme OR (type = :module AND schema_version <> :schema_uninstalled)',array(
...
...
@@ -225,6 +235,11 @@ function update_prepare_d8_bootstrap() {
':module'=>'module',
':schema_uninstalled'=>SCHEMA_UNINSTALLED,
));
// Populate a fixed module list (again, why did it get lost?) to avoid
// errors due to the drupal_alter() in _system_rebuild_module_data().