function activity_send_email_schema in Open Social 8.9
Same name and namespace in other branches
- 8 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.2 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.3 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.4 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.5 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.6 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.7 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 8.8 modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 10.3.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 10.0.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 10.1.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
- 10.2.x modules/custom/activity_send/modules/activity_send_email/activity_send_email.install \activity_send_email_schema()
Implements hook_schema().
File
- modules/
custom/ activity_send/ modules/ activity_send_email/ activity_send_email.install, line 29 - Install, update and uninstall functions for the activity_send_email module.
Code
function activity_send_email_schema() {
$schema['user_activity_digest'] = [
'fields' => [
'uid' => [
'description' => 'The {user}.uid of the target user.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
],
'activity' => [
'description' => 'The {activity}.id.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
],
'frequency' => [
'description' => 'The frequency for this activity. It should match the EmailFrequency plugin id.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
'timestamp' => [
'description' => 'The timestamp of when this item was inserted.',
'type' => 'int',
'length' => 11,
'not null' => TRUE,
'default' => 0,
'unsigned' => TRUE,
],
],
'indexes' => [
'uad_uid' => [
'uid',
],
'uad_frequency' => [
'frequency',
],
],
];
return $schema;
}