function file_entity_update_7202 in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 file_entity.install \file_entity_update_7202()
Update empty {file_managed}.type records to 'undefined'.
Drupal 7.8 disallows empty string as the value for a bundle key, so update empty {file_managed}.type records to 'undefined' instead.
File
- ./
file_entity.install, line 528 - Install, update and uninstall functions for the file_entity module.
Code
function file_entity_update_7202() {
db_update('file_managed')
->fields(array(
'type' => 'undefined',
))
->condition('type', '')
->execute();
}