You are here

function discussthis_schema in Discuss This! 7

Same name and namespace in other branches
  1. 6 discussthis.install \discussthis_schema()
  2. 7.2 discussthis.install \discussthis_schema()

Implements hook_schema().

File

./discussthis.install, line 11
Installtion functions for Discuss This! module.

Code

function discussthis_schema() {
  $schema['discussthis'] = array(
    'fields' => array(
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'topic_nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => FALSE,
        'default' => 0,
      ),
      'forum_tid' => array(
        'description' => 'This node discussions will go to this forum (only applies to first post.) If -1, prevent Discuss This! on this node.',
        'type' => 'int',
        'not null' => FALSE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}