You are here

function smartqueue_schema in Nodequeue 6.2

Same name and namespace in other branches
  1. 7.3 smartqueue.install \smartqueue_schema()
  2. 7.2 modules/smartqueue/smartqueue.install \smartqueue_schema()

Implementation of hook_schema().

File

./smartqueue.install, line 11
Install, update and uninstall functions for the smartqueue module.

Code

function smartqueue_schema() {
  $schema['smartqueue'] = array(
    'description' => 'Table for smartqueues, storing global information for each queue.',
    'fields' => array(
      'qid' => array(
        'description' => 'The primary identifier for a queue.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'use_parents' => array(
        'description' => "Whether a queue is to use the terms' parents when displaying the queue selection.",
        'type' => 'int',
        'size' => 'tiny',
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'qid',
    ),
  );
  return $schema;
}