removed uuids from configs, and removed some depcreated code from update hook
This commit is contained in:
@ -100,14 +100,9 @@ function opencase_entities_update_80198() {
|
||||
|
||||
function opencase_entities_update_80197() {
|
||||
//check if the table exists first. If not, then create the entity.
|
||||
if(!db_table_exists('oc_organisation')) {
|
||||
\Drupal::entityTypeManager()->clearCachedDefinitions();
|
||||
\Drupal::entityDefinitionUpdateManager()
|
||||
->installEntityType(\Drupal::entityTypeManager()->getDefinition('oc_organisation'));
|
||||
}
|
||||
else {
|
||||
return 'Organisation entity already exists';
|
||||
}
|
||||
}
|
||||
|
||||
function opencase_entities_update_80192(&$sandbox) {
|
||||
|
Reference in New Issue
Block a user