function gmap_taxonomy_schema in GMap Module 7
Same name and namespace in other branches
- 6.2 gmap_taxonomy.install \gmap_taxonomy_schema()
- 6 gmap_taxonomy.install \gmap_taxonomy_schema()
- 7.2 gmap_taxonomy.install \gmap_taxonomy_schema()
Implementation of hook_schema().
File
- ./
gmap_taxonomy.install, line 28 - gmap_taxonomy install routines.
Code
function gmap_taxonomy_schema() {
$schema['gmap_taxonomy_term'] = array(
'fields' => array(
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'marker' => array(
'type' => 'varchar',
'length' => 32,
),
),
'primary key' => array(
'tid',
),
);
$schema['gmap_taxonomy_node'] = array(
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
// 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
'tid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'marker' => array(
'type' => 'varchar',
'length' => 32,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}