You are here

function signature_forum_schema in Signatures for Forums 7

Same name and namespace in other branches
  1. 6 signature_forum.install \signature_forum_schema()

Implementation of hook_schema().

File

./signature_forum.install, line 11
Installs, updates and uninstalls signature_forum module.

Code

function signature_forum_schema() {
  $schema['signature_forum_post'] = array(
    'fields' => array(
      'delta' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'description' => 'The id of the attached object. nid for nodes and cid for comments.',
        'not null' => TRUE,
        'disp-width' => 11,
      ),
      'type' => array(
        'description' => 'The type of comment to attach settings.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'status' => array(
        'type' => 'int',
        'description' => 'A boolean indicator for whether or not a signature should be displayed.',
        'size' => 'tiny',
        'not null' => TRUE,
        'disp-width' => 11,
      ),
    ),
    'primary key' => array(
      'delta',
      'type',
    ),
  );
  return $schema;
}