You are here

function domain_theme_schema in Domain Access 7.3

Same name and namespace in other branches
  1. 6.2 domain_theme/domain_theme.install \domain_theme_schema()
  2. 7.2 domain_theme/domain_theme.install \domain_theme_schema()

Implements hook_schema().

File

domain_theme/domain_theme.install, line 11
Install file for the Domain Theme module

Code

function domain_theme_schema() {
  $schema['domain_theme'] = array(
    'description' => 'Stores theme information for each domain.',
    'fields' => array(
      'domain_id' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'theme' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
      'settings' => array(
        'type' => 'blob',
        'not null' => FALSE,
      ),
      'status' => array(
        'type' => 'int',
        'size' => 'tiny',
        'not null' => TRUE,
        'default' => 0,
      ),
      'filepath' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'domain_id',
      'theme',
    ),
    'foreign_keys' => array(
      'domain_id' => array(
        'domain' => 'domain_id',
      ),
    ),
  );
  return $schema;
}