You are here

function file_entity_update_7002 in D7 Media 7

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/file_entity.install, line 232
Install, update and uninstall functions for the file_entity module.

Code

function file_entity_update_7002() {
  db_update('file_managed')
    ->fields(array(
    'type' => 'undefined',
  ))
    ->condition('type', '')
    ->execute();
}