function ctools_schema_2

Version 2 of the CTools schema.

3 calls to ctools_schema_2()
ctools_schema_3 in ./ctools.install
Version 3 of the CTools schema.
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 74

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;
    // Update the 'data' field to be type 'blob'.
    $schema['ctools_object_cache']['fields']['data'] = array(
        'type' => 'blob',
        'size' => 'big',
        'description' => 'Serialized data being stored.',
        'serialize' => TRUE,
    );
    // 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;
}