You are here

function browscap_schema in Browscap 8

Same name and namespace in other branches
  1. 8.3 browscap.install \browscap_schema()
  2. 6.2 browscap.install \browscap_schema()
  3. 6 browscap.install \browscap_schema()
  4. 7.2 browscap.install \browscap_schema()
  5. 7 browscap.install \browscap_schema()

Implements hook_install().

File

./browscap.install, line 10
Install, update and uninstall functions for the Browscap module.

Code

function browscap_schema() {
  $schema['browscap'] = array(
    'fields' => array(
      'useragent' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'data' => array(
        'type' => 'blob',
        'size' => 'big',
      ),
    ),
    'primary key' => array(
      'useragent',
    ),
  );
  $schema['cache_browscap'] = drupal_get_schema_unprocessed('system', 'cache');
  return $schema;
}