Advertisement
narthollis

Update Diaspora Records for Net Narthollis

Oct 20th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.62 KB | None | 0 0
  1. UPDATE posts
  2.     SET diaspora_handle = SUBSTRING(diaspora_handle, 1, LENGTH(diaspora_handle)-5)
  3.     WHERE diaspora_handle LIKE '%@diaspora.narthollis.net:3000';
  4. UPDATE people
  5.     SET diaspora_handle = SUBSTRING(diaspora_handle, 1, LENGTH(diaspora_handle)-5)
  6.     WHERE diaspora_handle LIKE '%@diaspora.narthollis.net:3000';
  7. UPDATE people
  8.     SET url=REPLACE(url,':3000','')
  9.     WHERE url LIKE '%diaspora.narthollis.net:3000%';
  10. UPDATE profiles
  11.     SET
  12.         image_url=REPLACE(image_url,':3000',''),
  13.         image_url_small=REPLACE(image_url_small,':3000',''),
  14.         image_url_medium=REPLACE(image_url_medium,':3000','')
  15.     WHERE image_url LIKE '%diaspora.narthollis.net:3000%';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement