function i18nstrings_update_6001 in Internationalization 6
Drupal 6 update. Change field name, 'oid' was psql reserved name.
ALTER TABLE `drupal6_i18n`.`i18n_strings` CHANGE COLUMN `oid` `objectid` INTEGER NOT NULL DEFAULT 0;
File
- i18nstrings/
i18nstrings.install, line 140 - Installation file for i18nstrings module.
Code
function i18nstrings_update_6001() {
$ret = array();
if (!variable_get('i18nstrings_update_skip', 0)) {
db_change_field($ret, 'i18n_strings', 'oid', 'objectid', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
}
return $ret;
}