You are here

function domain_conf_schema in Domain Access 7.2

Same name and namespace in other branches
  1. 6.2 domain_conf/domain_conf.install \domain_conf_schema()
  2. 7.3 domain_conf/domain_conf.install \domain_conf_schema()

Implements hook_schema()

File

domain_conf/domain_conf.install, line 11
Install file.

Code

function domain_conf_schema() {
  $schema['domain_conf'] = array(
    'description' => 'Stores custom settings for each domain.',
    'fields' => array(
      'domain_id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'settings' => array(
        'type' => 'blob',
        'size' => 'big',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'domain_id',
    ),
    'foreign_keys' => array(
      'domain_id' => array(
        'domain' => 'domain_id',
      ),
    ),
  );
  return $schema;
}