function simplenews_update_7009 in Simplenews 7.2
Same name and namespace in other branches
- 7 simplenews.install \simplenews_update_7009()
Add the sent_subsriber_countcolumn to {simplenews_newsletter} if missing.
File
- ./
simplenews.install, line 791 - Install, update and uninstall functions for the simplenews module
Code
function simplenews_update_7009() {
if (!db_field_exists('simplenews_newsletter', 'sent_subscriber_count')) {
db_add_field('simplenews_newsletter', 'sent_subscriber_count', array(
'description' => 'The count of subscribers to the newsletter when it was sent.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
}
}