You are here

function disqus_schema in Disqus 7

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

Implementation of hook_schema().

File

./disqus.install, line 11
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;
}