You are here

function field_ipaddress_field_schema in IP address fields 7

Implements hook_field_schema().

File

./field_ipaddress.install, line 10
Install, update and uninstall functions for the field_ipaddress module.

Code

function field_ipaddress_field_schema() {
  return array(
    'columns' => array(
      'start' => array(
        'type' => 'int',
        'size' => 'big',
        'not null' => TRUE,
        'default' => 0,
      ),
      'end' => array(
        'type' => 'int',
        'size' => 'big',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'start' => array(
        'start',
      ),
      'range' => array(
        'start',
        'end',
      ),
    ),
  );
}