You are here

function location_www_schema in Location 7.3

Implements hook_schema().

File

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

Code

function location_www_schema() {
  $schema['location_www'] = array(
    'description' => 'location_www.module {location} supplementary table.',
    'fields' => array(
      'lid' => array(
        'description' => '{location}.lid',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'www' => array(
        'description' => 'www adress',
        'type' => 'varchar',
        // Maximum URLs length.
        'length' => 2048,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'lid',
    ),
  );
  return $schema;
}