function pmproject_schema in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmproject/pmproject.install \pmproject_schema()
- 7 pmproject/pmproject.install \pmproject_schema()
Implements hook_schema().
File
- pmproject/
pmproject.install, line 56 - Installation functions for the Project Management project module.
Code
function pmproject_schema() {
$schema['pmproject_index'] = array(
'description' => 'Maintains denormalized information about pm project relationships.',
'fields' => array(
'nid' => array(
'description' => 'The {node}.nid this record tracks.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'pmproject_nid' => array(
'description' => 'The pmproject nid.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'created' => array(
'description' => 'The Unix timestamp when the node was created.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'nid' => array(
'nid',
),
'pmproject_nid' => array(
'pmproject_nid',
),
),
'foreign keys' => array(
'tracked_node' => array(
'table' => 'node',
'columns' => array(
'nid' => 'nid',
),
),
'pmproject_nid' => array(
'table' => 'node',
'columns' => array(
'pmproject_nid' => 'nid',
),
),
),
);
return $schema;
}