function ctools_schema_2 in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 ctools.install \ctools_schema_2()
Version 2 of the CTools schema.
3 calls to ctools_schema_2()
- ctools_schema in ./
ctools.install - Implementation of hook_schemea
- ctools_update_6001 in ./
ctools.install - Enlarge the ctools_object_cache.name column to prevent truncation and weird errors.
- ctools_update_6002 in ./
ctools.install - Add the new css cache table.
File
- ./
ctools.install, line 70 - Contains install and update functions for ctools.
Code
function ctools_schema_2() {
$schema = ctools_schema_1();
// update the 'name' field to be 128 bytes long:
$schema['ctools_object_cache']['fields']['name']['length'] = 128;
// DO NOT MODIFY THIS TABLE -- this definition is used to create the table.
// Changes to this table must be made in schema_3 or higher.
$schema['ctools_css_cache'] = array(
'description' => 'A special cache used to store CSS that must be non-volatile.',
'fields' => array(
'cid' => array(
'type' => 'varchar',
'length' => '128',
'description' => 'The CSS ID this cache object belongs to.',
'not null' => TRUE,
),
'filename' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'The filename this CSS is stored in.',
),
'css' => array(
'type' => 'text',
'size' => 'big',
'description' => 'CSS being stored.',
'serialize' => TRUE,
),
'filter' => array(
'type' => 'int',
'size' => 'tiny',
'description' => 'Whether or not this CSS needs to be filtered.',
),
),
'primary key' => array(
'cid',
),
);
return $schema;
}