Created
March 29, 2015 19:45
-
-
Save webaka/03fd4abb6e8eb1252a3d to your computer and use it in GitHub Desktop.
Firefox mix
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
# Bulk replace Firefox bookmarks | |
UPDATE moz_places | |
SET url = REPLACE ( | |
url, | |
'http://newvegas.nexusmods.com/', | |
'http://www.nexusmods.com/newvegas/' | |
) | |
WHERE | |
url LIKE 'http://newvegas.nexusmods.com/%' | |
AND ( | |
( | |
SELECT | |
count(*) | |
FROM | |
moz_places mp | |
WHERE | |
mp.url = REPLACE ( | |
moz_places.url, | |
'http://newvegas.nexusmods.com/', | |
'http://www.nexusmods.com/newvegas/' | |
) | |
) = 0 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment