function maillog_schema in Maillog / Mail Developer 6
Same name and namespace in other branches
- 8 maillog.install \maillog_schema()
- 7 maillog.install \maillog_schema()
Implementation of hook_schema().
File
- ./
maillog.install, line 84 - Provides the installation routines for the maillog module
Code
function maillog_schema() {
$schema['maillog'] = array(
'description' => t("Stores outgoing e-mail details for nodes of type 'maillog'."),
'fields' => array(
'idmaillog' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t("The mail_log {node}.nid"),
),
'header_message_id' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => t("The 'message-id' field of the e-mail."),
),
'header_from' => array(
'type' => 'text',
'not null' => TRUE,
'default' => '',
'description' => t("The 'From' field of the e-mail."),
),
'header_to' => array(
'type' => 'text',
'not null' => TRUE,
'default' => '',
'description' => t("The 'To' field of the e-mail."),
),
'header_reply_to' => array(
'type' => 'text',
'not null' => TRUE,
'default' => '',
'description' => t("The 'Reply-To' field of the e-mail."),
),
'header_all' => array(
'type' => 'text',
'not null' => TRUE,
'default' => '',
'description' => t("The 'Header' field of the e-mail."),
),
'subject' => array(
'description' => t("The 'Subject' fieldof the e-mail."),
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'body' => array(
'description' => 'The body of this version.',
'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(
'idmaillog',
),
);
return $schema;
}