function pmtask_schema in Drupal PM (Project Management) 7
Implements hook_schema().
File
- pmtask/
pmtask.install, line 197 - Install, disable, uninstall and update functions for pmtask module.
Code
function pmtask_schema() {
$schema['pmtask'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'stepno' => array(
'type' => 'varchar',
'length' => 50,
),
'organization_nid' => array(
'type' => 'int',
),
'organization_title' => array(
'type' => 'varchar',
'length' => 150,
),
'project_nid' => array(
'type' => 'int',
),
'project_title' => array(
'type' => 'varchar',
'length' => 150,
),
'parent_nid' => array(
'type' => 'int',
),
'weight' => array(
'type' => 'int',
),
'taskstatus' => array(
'type' => 'varchar',
'length' => 100,
),
'taskcategory' => array(
'type' => 'varchar',
'length' => 100,
),
'taskpriority' => array(
'type' => 'varchar',
'length' => 100,
),
'pricemode' => array(
'type' => 'varchar',
'length' => 100,
),
'price' => array(
'type' => 'float',
),
'currency' => array(
'type' => 'varchar',
'length' => 100,
),
'durationunit' => array(
'type' => 'varchar',
'length' => 100,
),
'duration' => array(
'type' => 'float',
'default' => 0,
),
'assigned_nid' => array(
'type' => 'int',
),
'assigned_title' => array(
'type' => 'varchar',
'length' => 100,
),
),
'primary key' => array(
'vid',
),
'indexes' => array(
'nid' => array(
'nid',
),
'organization_nid' => array(
'organization_nid',
),
'project_nid' => array(
'project_nid',
),
'assigned_nid' => array(
'assigned_nid',
),
'parent_nid' => array(
'parent_nid',
),
),
);
return $schema;
}