You are here

function countries_field_schema in Countries 7

Same name and namespace in other branches
  1. 8 countries.install \countries_field_schema()
  2. 7.2 countries.install \countries_field_schema()

Implement hook_field_schema().

File

./countries.module, line 335

Code

function countries_field_schema($field) {
  return array(
    'columns' => array(
      'iso2' => array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'iso2' => array(
        'iso2',
      ),
    ),
  );
}