You are here

function mail_logger_update_7003 in Mail Logger 7

Add 'mail system' column.

File

./mail_logger.install, line 191
Install, update and uninstall functions for the mail_logger module.

Code

function mail_logger_update_7003() {
  if (db_field_exists('mail_logger', 'mail_system')) {
    return t('mail_logger_update_7003 was unneccessary.');
  }
  else {
    db_add_field('mail_logger', 'mail_system', array(
      'description' => 'Mail System Class',
      'type' => 'varchar',
      'length' => 128,
    ), array(
      'indexes' => array(
        'mail_system' => array(
          'mail_system',
        ),
      ),
    ));
    return t('The Mail_logger "mail_system" field was added.');
  }
}