function mail_safety_schema in Mail Safety 8
Same name and namespace in other branches
- 7.2 mail_safety.install \mail_safety_schema()
- 7 mail_safety.install \mail_safety_schema()
Implements hook_schema().
Define the schema's used for this module.
File
- ./mail_safety.install, line 12 
- Install, update, and uninstall functions for the Mail Safety module.
Code
function mail_safety_schema() {
  $schema['mail_safety_dashboard'] = array(
    'description' => 'Stores all mails sent by the system in this table.',
    'fields' => array(
      'mail_id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The mail id.',
      ),
      'sent' => array(
        'type' => 'int',
        'default' => 0,
        'description' => 'The order in which this display is loaded.',
      ),
      'mail' => array(
        'type' => 'text',
        'size' => 'big',
        'description' => 'A serialized mail object stored',
        'serialize' => TRUE,
        'serialized default' => 'a:0:{}',
      ),
    ),
    'primary key' => array(
      'mail_id' => 'mail_id',
    ),
  );
  return $schema;
}