From 69422425d5fe2453f363079514ff3bf78c4407c5 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 6 Aug 2013 23:23:54 -0700 Subject: [PATCH] Issue #1815886 follow-up by slashrsm: Upgrade path for Drupal core cannot manage files larger than 4 GB --- core/modules/file/file.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/modules/file/file.install b/core/modules/file/file.install index 16611c273f7..614b07c95f5 100644 --- a/core/modules/file/file.install +++ b/core/modules/file/file.install @@ -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); +} +