function popup_onload_statistics_schema in Popup On Load 7
Same name and namespace in other branches
- 8 modules/popup_onload_statistics/popup_onload_statistics.install \popup_onload_statistics_schema()
Implements hook_schema().
File
- popup_onload_statistics/
popup_onload_statistics.install, line 12 - Install, update, and uninstall functions for the Popup On Load Statistics module.
Code
function popup_onload_statistics_schema() {
$schema = [];
$schema['popup_onload_statistics'] = [
'description' => 'Primary Key: Identifier for a popup.',
'fields' => [
'aid' => [
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Primary Key: Identifier for an action.',
],
'popup_id' => [
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Popup identifier.',
],
'type' => [
'type' => 'varchar',
'not null' => TRUE,
'length' => 32,
'description' => 'Action type.',
],
'atime' => [
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'Action time.',
],
],
'primary key' => [
'aid',
],
'indexes' => [
'popup_id' => [
'popup_id',
],
],
];
return $schema;
}