Commit dffa256a authored by omega8cc's avatar omega8cc

Issue #2163979 - Check if field_info_field_map() is available to not break...

Issue #2163979 - Check if field_info_field_map() is available to not break support for old D7 versions.
parent 45cf874d
......@@ -44,6 +44,7 @@ function _provision_platform_drupal_deploy_7_replace($old_url, $new_url) {
}
db_query("UPDATE {system} SET filename = REPLACE(filename, :old, :new)", $replace_patterns);
if (function_exists('field_info_field_map')) {
$field_map = field_info_field_map();
foreach ($field_map as $key => $info) {
$tablekey = db_escape_table($key);
......@@ -61,6 +62,7 @@ function _provision_platform_drupal_deploy_7_replace($old_url, $new_url) {
db_query("UPDATE {field_revision_${tablekey}} SET ${tablekey}_summary = REPLACE(${tablekey}_summary, :old, :new)", $replace_patterns);
}
}
}
drush_log(
dt('Changed paths from sites/@old_url to sites/@new_url',
array('@old_url' => $old_url, '@new_url' => $new_url)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment