You are here

function geofield_field_schema in Geofield 7

Same name and namespace in other branches
  1. 7.2 geofield.install \geofield_field_schema()

Implements hook_field_schema().

1 call to geofield_field_schema()
geofield_update_7100 in ./geofield.install
Changing srid from int to text

File

./geofield.install, line 11
Install, update and uninstall functions for the geofield module.

Code

function geofield_field_schema($field) {
  return array(
    'columns' => array(
      'wkt' => array(
        'type' => 'text',
        'size' => 'big',
        'not null' => FALSE,
      ),
      'geo_type' => array(
        'type' => 'text',
        'size' => 'normal',
        'not null' => FALSE,
      ),
      'lat' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
      'lon' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
      'left' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
      'top' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
      'right' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
      'bottom' => array(
        'type' => 'float',
        'not null' => FALSE,
      ),
      'srid' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
      'accuracy' => array(
        'type' => 'int',
        'not null' => FALSE,
      ),
      'source' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
    ),
  );
}