function development_environment_schema in Development Environment 7
Same name and namespace in other branches
- 8 development_environment.install \development_environment_schema()
Implements hook_schema().
File
- ./
development_environment.install, line 30 - Holds installation hooks for the Development Environment module.
Code
function development_environment_schema() {
$schema['development_environment_log'] = [
'description' => 'Email logs stored by the development environment module',
'fields' => [
'lid' => [
'description' => 'The unique Log ID of the log item',
'type' => 'serial',
],
'email_data' => [
'description' => 'The Drupal email data',
'type' => 'text',
'not null' => TRUE,
],
'timestamp' => [
'description' => 'The UNIX timestamp at which the email was logged',
'type' => 'int',
'length' => 10,
'not null' => TRUE,
'unsigned' => TRUE,
],
'recipient_email' => [
'description' => 'The recipient of the email',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
'subject' => [
'description' => 'The subject of the email',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
],
],
'primary key' => [
'lid',
],
];
return $schema;
}