You are here

function shoutbox_group_schema in Shoutbox 6.2

Same name and namespace in other branches
  1. 7.2 shoutbox_group/shoutbox_group.install \shoutbox_group_schema()
  2. 7 shoutbox_group/shoutbox_group.install \shoutbox_group_schema()

Implementation of hook_schema

File

shoutbox_group/shoutbox_group.install, line 6

Code

function shoutbox_group_schema() {
  $schema['shoutbox_groups'] = array(
    'description' => 'Link shouts to their respected group.',
    'fields' => array(
      'shout_id' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The shout id',
      ),
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The organic group node id',
      ),
    ),
    'primary key' => array(
      'shout_id',
    ),
  );
  return $schema;
}