Skip to content
Snippets Groups Projects
Commit 6a788aa6 authored by Ahmad Khader's avatar Ahmad Khader :tired_face: Committed by Rajab Natshah
Browse files

Issue #3447162 by Ahmad Khader: Fix Update aborted by: varbase_core_update_90006

parent 88a46ad6
No related branches found
No related tags found
No related merge requests found
......@@ -93,12 +93,6 @@ function varbase_core_update_90006() {
'block_class.settings',
];
ModuleInstallerFactory::importConfigsFromList('varbase_core', $managed_configs, 'config/optional');
// Entity updates to clear up any mismatched entity and/or field definitions
// And Fix changes were detected in the entity type and field definitions.
\Drupal::classResolver()
->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)
->applyUpdates();
}
}
......
......@@ -37,9 +37,9 @@ final class VarbaseCoreCommands extends DrushCommands {
$this->logger()->success(dt('Removed non-existent permissions.'));
}
catch (\Exception $e) {
\Drupal::logger('Varbase')->critical('Error while drush varbase:remove-non-existent-permissions. !code !exception', [
'!code' => $e->getCode(),
'!exception' => $e->getMessage(),
\Drupal::logger('Varbase')->critical('Error while drush varbase:remove-non-existent-permissions. %code %exception', [
'%code' => $e->getCode(),
'%exception' => $e->getMessage(),
]);
}
}
......@@ -63,9 +63,9 @@ final class VarbaseCoreCommands extends DrushCommands {
$this->logger()->success(dt('Applied Entity updates for mismatched entity and/or field definitions'));
}
catch (\Exception $e) {
\Drupal::logger('Varbase')->critical('Error while drush varbase:entity-update. !code !exception', [
'!code' => $e->getCode(),
'!exception' => $e->getMessage(),
\Drupal::logger('Varbase')->critical('Error while drush varbase:entity-update. %code %exception', [
'%code' => $e->getCode(),
'%exception' => $e->getMessage(),
]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment