You are here

function domain_theme_schema in Domain Access 6.2

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

Implement hook_schema()

File

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

Code

function domain_theme_schema() {
  $schema['domain_theme'] = array(
    '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',
    ),
  );
  return $schema;
}