View source
<?php
function panels_content_cache_schema() {
$schema = array();
$schema['panels_content_cache'] = array(
'description' => 'Stores display IDs and content types for content cached panel displays.',
'fields' => array(
'did' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'pid' => array(
'type' => 'int',
'default' => NULL,
),
'type' => array(
'description' => 'The {node_type}.type.',
'type' => 'varchar',
'length' => 32,
'default' => NULL,
),
'menu_name' => array(
'description' => 'The menu name if selected.',
'type' => 'varchar',
'length' => 32,
'default' => NULL,
),
),
'indexes' => array(
'did' => array(
'did',
),
'pid' => array(
'pid',
),
),
);
return $schema;
}
function panels_content_cache_install() {
drupal_install_schema('panels_content_cache');
}
function panels_content_cache_update_6001() {
$ret = array();
db_add_field($ret, 'panels_content_cache', 'menu_name', array(
'description' => 'The menu name if selected.',
'type' => 'varchar',
'length' => 32,
'default' => NULL,
));
db_change_field($ret, 'panels_content_cache', 'type', 'type', array(
'description' => 'The {node_type}.type.',
'type' => 'varchar',
'length' => 32,
'default' => NULL,
));
return $ret;
}
function panels_content_cache_uninstall() {
drupal_uninstall_schema('panels_content_cache');
}