function ed_classified_schema in Classified Ads 5
Same name and namespace in other branches
- 5.2 ed_classified.install \ed_classified_schema()
- 6.2 ed_classified.install \ed_classified_schema()
- 7.2 ed_classified.install \ed_classified_schema()
Implementation of hook_schema().
File
- ./
ed_classified.install, line 26
Code
function ed_classified_schema() {
$schema['edi_classified_nodes'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'expires_on' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'expiration_notify_last_sent' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'nid',
'vid',
),
);
return $schema;
}