You are here

function panels_content_cache_schema in Panels Content Cache 6

Same name and namespace in other branches
  1. 7 panels_content_cache.install \panels_content_cache_schema()

Implements hook_schema().

File

./panels_content_cache.install, line 6

Code

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;
}