You are here

function system_update_7079 in Drupal 7

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

Related topics

File

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