function ctools_schema_1 in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 ctools.install \ctools_schema_1()
CTools' initial schema; separated for the purposes of updates.
DO NOT MAKE CHANGES HERE. This schema version is locked.
1 call to ctools_schema_1()
- ctools_schema_2 in ./
ctools.install - Version 2 of the CTools schema.
File
- ./
ctools.install, line 127 - Contains install and update functions for ctools.
Code
function ctools_schema_1() {
$schema['ctools_object_cache'] = array(
'description' => t('A special cache used to store objects that are being edited; it serves to save state in an ordinarily stateless environment.'),
'fields' => array(
'sid' => array(
'type' => 'varchar',
'length' => '64',
'not null' => TRUE,
'description' => 'The session ID this cache object belongs to.',
),
'name' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'description' => 'The name of the object this cache is attached to.',
),
'obj' => array(
'type' => 'varchar',
'length' => '32',
'not null' => TRUE,
'description' => 'The type of the object this cache is attached to; this essentially represents the owner so that several sub-systems can use this cache.',
),
'updated' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'The time this cache was created or updated.',
),
'data' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized data being stored.',
'serialize' => TRUE,
),
),
'primary key' => array(
'sid',
'obj',
'name',
),
'indexes' => array(
'updated' => array(
'updated',
),
),
);
return $schema;
}