removed working-out code
This commit is contained in:
parent
f601890ad0
commit
3753b4e25c
@ -1,24 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Update 8023 - Create oc_case_provision entity
|
||||
*/
|
||||
function opencase_cases_update_8023() {
|
||||
//check if the table exists first. If not, then create the entity.
|
||||
if(!db_table_exists('oc_case_provision')) {
|
||||
\Drupal::entityTypeManager()->clearCachedDefinitions();
|
||||
\Drupal::entityDefinitionUpdateManager()
|
||||
->installEntityType(\Drupal::entityTypeManager()->getDefinition('oc_case_provision'));
|
||||
}
|
||||
}
|
||||
|
||||
/* remove it again*/
|
||||
function opencase_cases_update_8024() {
|
||||
$entity_update_manager = \Drupal::entityDefinitionUpdateManager();
|
||||
$entity_type = $entity_update_manager->getEntityType('oc_case_provision');
|
||||
$entity_update_manager->uninstallEntityType($entity_type);
|
||||
}
|
||||
|
||||
function opencase_cases_update_8025() {
|
||||
//check if the table exists first. If not, then create the entity.
|
||||
if(!db_table_exists('oc_case_provision')) {
|
||||
|
Reference in New Issue
Block a user