You are here

function mobile_number_field_schema in Mobile Number 7

Implements hook_field_schema().

File

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

Code

function mobile_number_field_schema($field) {
  $schema['columns'] = array(
    'value' => array(
      'type' => 'varchar',
      'length' => 19,
      'not null' => TRUE,
      'default' => '',
    ),
    'country' => array(
      'type' => 'varchar',
      'length' => 3,
      'not null' => TRUE,
      'default' => '',
    ),
    'local_number' => array(
      'type' => 'varchar',
      'length' => 15,
      'not null' => TRUE,
      'default' => '',
    ),
    'verified' => array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    ),
    'tfa' => array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => 0,
    ),
  );
  $schema['indexes'] = array(
    'value' => array(
      'value',
    ),
  );
  return $schema;
}