diff --git a/file_entity.install b/file_entity.install index e41db58..e8b503a 100644 --- a/file_entity.install +++ b/file_entity.install @@ -89,7 +89,11 @@ function file_entity_install() { function file_entity_uninstall() { // Remove the added column to the core {file_managed} table. db_drop_field('file_managed', 'type'); + $update_manager = \Drupal::entityDefinitionUpdateManager(); + $type_storage_definition = $update_manager->getFieldStorageDefinition('type', 'file'); + $update_manager->uninstallFieldStorageDefinition($type_storage_definition); } + /** * Update existing bogus entries for File types Document. */