function system_update_7077

Revert {file_managed}.filename changed to a binary column.

Related topics

File

drupal/modules/system/system.install, line 3219
Install, update and uninstall functions for the system module.

Code

function system_update_7077() {
  db_change_field('file_managed', 'filename', 'filename', array(
    'description' => 'Name of the file with no path components. This may differ from the basename of the URI if the file is renamed to avoid overwriting an existing file.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
}