You are here

function s3fs_update_7200 in S3 File System 7.3

Same name and namespace in other branches
  1. 7.2 s3fs.install \s3fs_update_7200()

Updates to the s3fs_file table.

File

./s3fs.install, line 335
Install, update and uninstall functions for the S3 File System module.

Code

function s3fs_update_7200() {

  // These two fields are no longer used as of 7.x-2.0.
  db_drop_field('s3fs_file', 'uid');
  db_drop_field('s3fs_file', 'mode');

  // Changed the version field to a varchar, to save space for objects that
  // don't have a VersionID.
  $spec = array(
    'description' => 'The S3 VersionId of the object.',
    'type' => 'varchar',
    'length' => 32,
    'not null' => FALSE,
    'default' => '',
  );
  db_change_field('s3fs_file', 'version', 'version', $spec);
}