You are here

function amazons3_update_7102 in AmazonS3 7.2

Same name and namespace in other branches
  1. 7 amazons3.install \amazons3_update_7102()

Update the filesize column to use a bigint, to allow TB filesizes.

File

./amazons3.install, line 157
Install, update and uninstall functions for the AmazonS3 module.

Code

function amazons3_update_7102(&$sandbox) {
  $spec = array(
    'description' => 'The size of the file in bytes.',
    'type' => 'int',
    'size' => 'big',
    'length' => 14,
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  db_change_field('amazons3_file', 'filesize', 'filesize', $spec);
}