function maillog_schema in Maillog / Mail Developer 7
Same name and namespace in other branches
- 8 maillog.install \maillog_schema()
- 6 maillog.install \maillog_schema()
Implements hook_schema().
File
- ./
maillog.install, line 78 - Provides the installation routines for the maillog module.
Code
function maillog_schema() {
$schema['maillog'] = array(
'description' => "Stores outgoing emails that are captured using the Maillog module.",
'fields' => array(
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "The primary key of this table.",
),
'header_message_id' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => "The 'message-id' field of the e-mail.",
),
'header_from' => array(
'type' => 'text',
'not null' => TRUE,
'description' => "The 'From' field of the e-mail.",
),
'header_to' => array(
'type' => 'text',
'not null' => TRUE,
'description' => "The 'To' field of the e-mail.",
),
'header_reply_to' => array(
'type' => 'text',
'not null' => TRUE,
'description' => "The 'Reply-To' field of the e-mail.",
),
'header_all' => array(
'type' => 'text',
'not null' => TRUE,
'description' => "The 'Header' field of the e-mail.",
),
'subject' => array(
'description' => "The 'Subject' field of the e-mail.",
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'body' => array(
'description' => 'The body of this message.',
'type' => 'text',
'not null' => TRUE,
'size' => 'big',
),
'sent_date' => array(
'description' => 'The Unix timestamp when the mail was sent.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'id',
),
);
return $schema;
}