Rebake falha ao alterar apenas o nome do subdomínio

Então, eis o que fiz:

  1. Executei o comando que você indicou (sem o from :grin:)

  2. Executei o rebake novamente, e agora ele parou aqui:

Rewriting all occurences of forums.coretabs.net to discourse.coretabs.net
THIS TASK WILL REWRITE DATA, ARE YOU SURE (type YES)
YES
incoming_domains=1
incoming_referers=3
invites=1
javascript_caches=1
post_revisions=509
posts=84
single_sign_on_records=1099
theme_fields=4
topic_custom_fields=4
Error: ERROR:  duplicate key value violates unique constraint "unique_post_links"
DETAIL:  Key (topic_id, post_id, url)=(69, 212, https://discourse.coretabs.net/t/topic/365) already exists.
The remap has only been partially applied due to the error above. Please re-run the script again.
  1. Pesquisei no Google por "unique_post_links" e descobri que a tabela se chama topic_links, conforme o schema.sql

  2. Desta vez, os links estavam parciais, então usei uma consulta de substituição:

DB.exec "update topic_links set url=REPLACE(url, 'discourse.coretabs.net', 'discourse-old.coretabs.net')"
  1. Executei o rebake novamente.

Funcionou perfeitamente, obrigado, Sam :rose: