function continents_api_schema in Country codes API 6
Implementation of hook_schema().
File
- contrib/
continents_api/ continents_api.install, line 11 - Install file for Continents API.
Code
function continents_api_schema() {
$schema['continents_api_continents'] = array(
'description' => 'Mapping of continent codes to country codes.',
'fields' => array(
'continent' => array(
'description' => 'Continent code.',
'type' => 'char',
'length' => 2,
'not null' => TRUE,
),
'country' => array(
'description' => 'ISO 3166 alpha-2 country code.',
'type' => 'char',
'length' => 2,
'not null' => TRUE,
),
),
'primary key' => array(
'continent',
'country',
),
);
return $schema;
}