function location_update_5300 in Location 7.5
Same name and namespace in other branches
- 5.3 location.install \location_update_5300()
- 6.3 location.install \location_update_5300()
- 7.3 location.install \location_update_5300()
- 7.4 location.install \location_update_5300()
Location 3.x update 1. Add location specific cache table.
File
- ./
location.install, line 462 - Install, update and uninstall functions for the location module.
Code
function location_update_5300() {
$schema['cache_location'] = array(
'description' => 'Generic cache table for caching things not separated out into their own tables. Contributed modules may also use this to store cached items.',
'fields' => array(
'cid' => array(
'description' => 'Primary Key: Unique cache ID.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'data' => array(
'description' => 'A collection of data to cache.',
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
),
'expire' => array(
'description' => 'A Unix timestamp indicating when the cache entry should expire, or 0 for never.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'created' => array(
'description' => 'A Unix timestamp indicating when the cache entry was created.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'headers' => array(
'description' => 'Any custom HTTP headers to be added to cached data.',
'type' => 'text',
'not null' => FALSE,
),
),
'indexes' => array(
'expire' => array(
'expire',
),
),
'primary key' => array(
'cid',
),
);
db_create_table('cache_location', $schema['cache_location']);
}