function data_taxonomy_schema in Data 6
Implementation of hook_schema().
File
- data_taxonomy/
data_taxonomy.install, line 10 - Install hooks for Data Taxonomy module.
Code
function data_taxonomy_schema() {
$schema = array();
$schema['data_taxonomy'] = array(
'description' => 'Relate data records to taxonomy',
'fields' => array(
'tid' => array(
'type' => 'int',
'size' => 'normal',
'unsigned' => TRUE,
'not null' => TRUE,
),
'data_table_name' => array(
'type' => 'varchar',
'size' => 'normal',
'length' => 64,
'not null' => TRUE,
),
'id' => array(
'type' => 'int',
'size' => 'normal',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'indexes' => array(
'tid' => array(
'tid',
),
'data_table_name' => array(
'data_table_name',
),
'id' => array(
'id',
),
'name_id' => array(
'data_table_name',
'id',
),
),
'primary key' => array(
'tid',
'data_table_name',
'id',
),
);
return $schema;
}