You are here

function browscap_schema in Browscap 8.3

Same name and namespace in other branches
  1. 8 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_schema().

File

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

Code

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