function system_update_7079

Convert the 'filesize' column in {file_managed} to a bigint.

Related topics

File

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

Code

function system_update_7079() {
  $spec = array(
    'description' => 'The size of the file in bytes.',
    'type' => 'int',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  db_change_field('file_managed', 'filesize', 'filesize', $spec);
}