You are here

function hosting_alias_schema in Hostmaster (Aegir) 6

Implementation of hook_schema().

File

modules/hosting/alias/hosting_alias.install, line 10
Install, update and uninstall for the site aliases module.

Code

function hosting_alias_schema() {
  $schema['hosting_site_alias'] = array(
    'fields' => array(
      'vid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'alias' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'automatic' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'redirection' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'vid' => array(
        'vid',
      ),
      'alias' => array(
        'alias',
      ),
    ),
  );
  return $schema;
}