You are here

function sms_international_schema in SMS Framework 6.2

Same name and namespace in other branches
  1. 7 modules/sms_international/sms_international.install \sms_international_schema()

Implementation of hook_schema().

File

modules/sms_international/sms_international.install, line 17

Code

function sms_international_schema() {
  $schema['sms_international'] = array(
    'fields' => array(
      'iso' => array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
      ),
      'country_code' => array(
        'type' => 'varchar',
        'length' => 4,
        'not null' => TRUE,
      ),
      'min_length' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'max_length' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'status' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'iso',
    ),
    'indexes' => array(
      'country_code' => array(
        'country_code',
      ),
    ),
  );
  return $schema;
}