Skip to content

Instantly share code, notes, and snippets.

@keopx
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keopx/00ac2962c19f854d5aac to your computer and use it in GitHub Desktop.
Save keopx/00ac2962c19f854d5aac to your computer and use it in GitHub Desktop.
-- Verificar donde existe
SELECT *
FROM `variable`
WHERE `value` LIKE '%sites%'
LIMIT 0 , 30;
-- Modificar las variables de sites
UPDATE variable SET file_public_path = REPLACE(file_public_path, 'www.example.com', 'www.drupalexample.com');
UPDATE variable SET file_private_path = REPLACE(file_private_path, 'www.example.com', 'www.drupalexample.com');
-- Otros datos serializados que puedan aparecer
UPDATE variable SET value = REPLACE(value, 's:36:"sites/www.example.com', 's:42:"sites/www.drupalexample.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment