Issue #1815886 follow-up by slashrsm: Upgrade path for Drupal core cannot manage files larger than 4 GB

8.0.x
webchick 2013-08-06 23:23:54 -07:00
parent 0adcf47245
commit 69422425d5
1 changed files with 16 additions and 0 deletions

View File

@ -340,3 +340,19 @@ function file_update_8003() {
}
}
}
/*
* Convert the 'filesize' column in {file_managed} to a bigint.
*/
function file_update_8004() {
$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);
}