diff --git a/core/modules/file/file.install b/core/modules/file/file.install
index 16611c273f7646164daf2c65abfb08644ce7bc8b..614b07c95f505d022da33a26b3785b130488f03a 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);
+}
+