You are here

function system_update_7077 in Drupal 7

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

Related topics

File

modules/system/system.install, line 3250
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' => '',
  ));
}