function browscap_schema in Browscap 8.3
Same name and namespace in other branches
- 8 browscap.install \browscap_schema()
- 6.2 browscap.install \browscap_schema()
- 6 browscap.install \browscap_schema()
- 7.2 browscap.install \browscap_schema()
- 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;
}