Last active
May 21, 2019 18:14
-
-
Save AndreiTelteu/d92553d48041221c2b3db91b13a63ede to your computer and use it in GitHub Desktop.
SQL Replace domain in Magento 1.x installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `core_config_data` | |
SET `value` = REPLACE(value, 'old-domain.com', 'new-domain.com') | |
WHERE `path` LIKE '%secure/base_url%' OR `path` = 'web/cookie/cookie_domain' | |
// with regex | |
UPDATE `subcategories` SET `name` = REGEXP_REPLACE(name,'^(.*)$','{"ro":"\\1","en":"\\1"}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A command for laravel, with support for serialized data