summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrace2010-10-16 05:31:01 (GMT)
committeranarcat2010-12-20 19:58:26 (GMT)
commit29e2fea1a139500cd4f1d4af4b91a7a93f055bd5 (patch)
tree2aa1d9a1e92de27fe1a7bd642cc15667c5f4af8c
parent3ba1abd7d55896151285f07aff203b99e27f6230 (diff)
Add paths rewrite in the files table also for sites/default to make migration to Aegir easier.
-rw-r--r--platform/drupal/deploy.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/drupal/deploy.inc b/platform/drupal/deploy.inc
index 68f1d63..ab79478 100644
--- a/platform/drupal/deploy.inc
+++ b/platform/drupal/deploy.inc
@@ -17,6 +17,8 @@ drush_log(
db_query("UPDATE {files} SET filepath=replace(filepath, 'sites/%s', 'sites/%s')", $old_url, $new_url);
db_query("UPDATE {users} SET picture = replace(picture, 'sites/%s', 'sites/%s')", $old_url, $new_url);
+db_query("UPDATE {files} SET filepath=replace(filepath, 'sites/default', 'sites/%s')", $new_url);
+db_query("UPDATE {users} SET picture = replace(picture, 'sites/default', 'sites/%s')", $new_url);
variable_set('file_directory_path', "sites/$new_url/files");
variable_set('file_directory_temp', "sites/$new_url/files/tmp");