You are here

function location_email_schema in Location 7.3

Implements hook_schema().

File

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

Code

function location_email_schema() {
  $schema['location_email'] = array(
    'description' => 'location_email.module {location} supplementary table.',
    'fields' => array(
      'lid' => array(
        'description' => '{location}.lid',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'email' => array(
        'description' => 'Email address',
        'type' => 'varchar',
        'length' => 254,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'lid',
    ),
  );
  return $schema;
}