function simplenews_statistics_update_6001 in Simplenews Statistics 6
Same name and namespace in other branches
- 6.3 simplenews_statistics.install \simplenews_statistics_update_6001()
- 6.2 simplenews_statistics.install \simplenews_statistics_update_6001()
#6001: 6.x-1.1 upgrade.
- Change nid columns to INT
File
- ./
simplenews_statistics.install, line 121 - Simplenews Statistics installation.
Code
function simplenews_statistics_update_6001() {
$ret = array();
db_change_field($ret, 'simplenews_statistics', 'nid', 'nid', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
db_change_field($ret, 'simplenews_statistics_clicks', 'nid', 'nid', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
db_change_field($ret, 'simplenews_statistics_opens', 'nid', 'nid', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
return $ret;
}