You are here

function gmap_taxonomy_schema in GMap Module 6

Same name and namespace in other branches
  1. 6.2 gmap_taxonomy.install \gmap_taxonomy_schema()
  2. 7.2 gmap_taxonomy.install \gmap_taxonomy_schema()
  3. 7 gmap_taxonomy.install \gmap_taxonomy_schema()

Implementation of hook_schema().

File

./gmap_taxonomy.install, line 25
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(
      'vid',
    ),
    'indexes' => array(
      'nid' => array(
        'nid',
      ),
    ),
  );
  return $schema;
}