"sites/$old_url", ':newpath' => "sites/$new_url"); /** * @file * Handle site migration tasks for redeployed sites. * This is primarily to handle the rename of the sites * directories. */ drush_log( dt('Changed paths from sites/@old_url to sites/@new_url', array('@old_url' => $old_url, '@new_url' => $new_url))); db_query("UPDATE {files} SET filepath=replace(filepath, :oldpath, :newpath)", $sql_args); db_query("UPDATE {users} SET picture = replace(picture, :oldpath, :newpath)", $sql_args); variable_set('files_directory_path', "sites/$new_url/files"); variable_set('files_directory_temp', "sites/$new_url/files/tmp");