1 system.install system_update_1008()

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

Related topics

File

core/modules/system/system.install, line 1783
Install, update and uninstall functions for the system module.

Code

function system_update_1008() {
  $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);
}