function path_redirect_update_6103 in Path redirect 6
Rename the path field to source.
Related topics
File
- ./
path_redirect.install, line 204 - Install and uninstall schema and functions for the path_redirect module.
Code
function path_redirect_update_6103() {
$ret = array();
db_drop_unique_key($ret, 'path_redirect', 'path_language');
db_change_field($ret, 'path_redirect', 'path', 'source', array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
));
db_add_unique_key($ret, 'path_redirect', 'source_language', array(
'source',
'language',
));
return $ret;
}