function system_update_7079

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

Related topics

File

modules/system/system.install, line 3297

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.