Put cases menu link back, and some other things

This commit is contained in:
Naomi
2020-11-15 17:39:50 +00:00
parent 7a9b95bf0d
commit 690ec3b509
8 changed files with 70 additions and 67 deletions

View File

@ -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',