Put cases menu link back, and some other things
This commit is contained in:
@ -3,6 +3,18 @@
|
||||
|
||||
use \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchemaConverter;
|
||||
|
||||
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) {
|
||||
$schema_converter = new SqlContentEntityStorageSchemaConverter(
|
||||
'oc_actor',
|
||||
|
Reference in New Issue
Block a user