function mail_logger_update_7000 in Mail Logger 7
Expand 'mailto' column.
File
- ./
mail_logger.install, line 122 - Install, update and uninstall functions for the mail_logger module.
Code
function mail_logger_update_7000() {
if (db_driver() == 'mysql') {
// Otherwise the alter table may fail.
db_query("set sql_mode = 'NO_ENGINE_SUBSTITUTION'");
}
db_change_field('mail_logger', 'mailto', 'mailto', array(
'description' => 'to whom this mail is going',
'type' => 'varchar',
'length' => 2047,
'not null' => TRUE,
), array(
'mailto' => array(
array(
'mailto',
200,
),
),
));
return t('The Mail_logger "mailto" column has been expanded.');
}