Guest User

Untitled

a guest
Oct 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. -- Update contrib modules location
  2. UPDATE system SET filename = REPLACE(filename,'profiles/myprofile/modules/contrib','sites/all/modules/contrib');
  3. UPDATE registry SET filename = REPLACE(filename,'profiles/myprofile/modules/contrib','sites/all/modules/contrib');
  4. UPDATE registry_file SET filename = REPLACE(filename,'profiles/myprofile/modules/contrib','sites/all/modules/contrib');
  5.  
  6. -- Update custom modules location
  7. UPDATE system SET filename = REPLACE(filename,'profiles/myprofile/modules/custom','sites/all/modules/custom');
  8. UPDATE registry SET filename = REPLACE(filename,'profiles/myprofile/modules/custom','sites/all/modules/custom');
  9. UPDATE registry_file SET filename = REPLACE(filename,'profiles/myprofile/modules/custom','sites/all/modules/custom');
  10.  
  11. -- Update themes location
  12. UPDATE system SET filename = REPLACE(filename,'profiles/myprofile/themes','sites/all/themes');
  13. UPDATE registry SET filename = REPLACE(filename,'profiles/myprofile/themes','sites/all/themes');
  14. UPDATE registry_file SET filename = REPLACE(filename,'profiles/myprofile/themes','sites/all/themes');
  15.  
  16. -- Truncate cache
  17. TRUNCATE cache;
  18. TRUNCATE cache_bootstrap; -- Drupal 7 only
  19. TRUNCATE cache_path; -- Drupal 7 only
  20.  
  21. -- NOTE: if you are using Drupal 6, change 'registry' and
  22. -- 'registry_file' to 'autoload_registry' and
  23. -- 'autoload_registry_file' and skip truncating 'cache_bootstrap'
  24. -- and 'cache_path'. The rest of the instructions should
  25. -- work unmodified.
Add Comment
Please, Sign In to add comment