Skip to content

Instantly share code, notes, and snippets.

@aaronschachter
Created November 28, 2014 22:09
Show Gist options
  • Save aaronschachter/9606caa12265366e1f71 to your computer and use it in GitHub Desktop.
Save aaronschachter/9606caa12265366e1f71 to your computer and use it in GitHub Desktop.
Converting system paths to custom/contrib paths
UPDATE system
SET filename = REPLACE(filename, 'sites/all/modules/', 'sites/all/modules/contrib/')
WHERE status = 1
AND filename LIKE 'sites/all/modules%'
UPDATE system
SET filename = REPLACE(filename, 'sites/all/themes/', 'sites/all/themes/contrib/')
WHERE status = 1
AND filename LIKE 'sites/all/themes%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment