function pm_schema in Drupal PM (Project Management) 7
Implements hook_schema().
File
- ./
pm.install, line 61 - Install, update and uninstall functions for the Project Management module.
Code
function pm_schema() {
$schema['pmattribute'] = array(
'fields' => array(
'aid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'domain' => array(
'type' => 'varchar',
'length' => 100,
),
'akey' => array(
'type' => 'varchar',
'length' => 100,
),
'avalue' => array(
'type' => 'varchar',
'length' => 100,
),
'parent_domain' => array(
'type' => 'varchar',
'length' => 100,
),
'weight' => array(
'type' => 'int',
'not null' => FALSE,
'default' => 0,
'size' => 'small',
),
'isdefault' => array(
'type' => 'int',
'not null' => FALSE,
'default' => 0,
'size' => 'tiny',
),
'isactive' => array(
'type' => 'int',
'not null' => FALSE,
'default' => 1,
'size' => 'tiny',
),
),
'primary key' => array(
'aid',
),
'indexes' => array(
'domain' => array(
'domain',
),
),
);
return $schema;
}