function classified_schema in Classified Ads 7.3
Same name and namespace in other branches
- 6.3 classified.install \classified_schema()
Implements hook_schema().
Non-translation of schema data became standard with Drupal 6.9. See: http://drupal.org/node/332123.
File
- ./
classified.install, line 194 - Install file for the Classified Ads module.
Code
function classified_schema() {
$schema['classified_node'] = array(
'description' => 'Stores the extra information for the classified node-related type.',
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Node nid of related node.',
),
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Node vid (version id).',
),
'expires' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Expiration timestamp',
),
'notify' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'Timestamp of latest notification',
),
),
'primary key' => array(
'nid',
'vid',
),
);
return $schema;
}