You are here

function mail_logger_update_6000 in Mail Logger 6

Add language field to the mail_logger table to support upgrading from Drupal 5.

File

./mail_logger.install, line 110
Install and update functions for Mail Logger module.

Code

function mail_logger_update_6000() {
  $ret = array();
  if (!db_column_exists('mail_logger', 'language')) {
    db_add_field($ret, 'mail_logger', 'language', array(
      'description' => t('Language code'),
      'type' => 'varchar',
      'length' => 20,
      'not null' => TRUE,
    ));
    db_add_index($ret, 'mail_logger', 'language', array(
      'language',
    ));
  }
  return $ret;
}