function tmgmt_update_7012 in Translation Management Tool 7
Shortens remote_identifier_1/2 fields and recreates index for remote identifier fields to include only the first two.
File
- ./
tmgmt.install, line 821 - Installation hooks for the Translation Management module.
Code
function tmgmt_update_7012() {
db_drop_index('tmgmt_remote', 'remote_identifiers');
db_change_field('tmgmt_remote', 'remote_identifier_1', 'remote_identifier_1', array(
'type' => 'varchar',
'length' => 127,
'not null' => TRUE,
'default' => '',
'description' => 'Custom remote identifier data.',
));
db_change_field('tmgmt_remote', 'remote_identifier_2', 'remote_identifier_2', array(
'type' => 'varchar',
'length' => 127,
'not null' => TRUE,
'default' => '',
'description' => 'Custom remote identifier data.',
));
db_add_index('tmgmt_remote', 'remote_identifiers', array(
'remote_identifier_1',
'remote_identifier_2',
));
}