function shoutbox_domain_schema in Shoutbox 7
Same name and namespace in other branches
- 6.2 shoutbox_domain/shoutbox_domain.install \shoutbox_domain_schema()
- 7.2 shoutbox_domain/shoutbox_domain.install \shoutbox_domain_schema()
Implements hook_schema().
File
- shoutbox_domain/
shoutbox_domain.install, line 11 - Install, update and uninstall functions for the shoutbox_domain module.
Code
function shoutbox_domain_schema() {
$schema['shoutbox_domain'] = array(
'description' => 'Link shouts to their respected domains.',
'fields' => array(
'shout_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The shout id',
),
'domain_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The domain id',
),
),
'primary key' => array(
'shout_id',
),
);
return $schema;
}