You are here

function amazons3_update_7202 in AmazonS3 7.2

Switch to using the cache API for metadata.

File

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

Code

function amazons3_update_7202() {
  $schema = array();
  $schema['cache_amazons3_metadata'] = drupal_get_schema_unprocessed('system', 'cache');
  $schema['cache_amazons3_metadata']['description'] = 'Cache for AmazonS3 metadata.';
  db_create_table('cache_amazons3_metadata', $schema['cache_amazons3_metadata']);
  db_drop_table('amazons3_file');
}