You are here

function disqus_schema in Disqus 6

Same name and namespace in other branches
  1. 7 disqus.install \disqus_schema()

Implementation of hook_schema().

File

./disqus.install, line 37
Provides any required installation or upgrade path requirements.

Code

function disqus_schema() {
  $schema = array();
  $schema['disqus'] = array(
    'fields' => array(
      'did' => array(
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'nid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'status' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'did',
    ),
    'indexes' => array(
      'nid' => array(
        'nid',
      ),
      'status' => array(
        'status',
      ),
    ),
  );
  return $schema;
}