diff options
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 7d3c95916..3c83c37e9 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -858,6 +858,7 @@ function system_schema() { 'filesize' => array( 'description' => 'The size of the file in bytes.', 'type' => 'int', + 'size' => 'big', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, @@ -3134,6 +3135,21 @@ function system_update_7078() { ), array('unique keys' => array('formats' => array('format', 'type')))); } +/* + * Convert the 'filesize' column in {file_managed} to a bigint. + */ +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); +} + /** * @} End of "defgroup updates-7.x-extra". * The next series of updates should start at 8000. |