Sto cercando di ricostruire una (forum.techandtiny.com) delle tre istanze Discourse che gestisco sul mio server. La cosa pazzesca è che i plugin utilizzati sono identici alle altre due istanze (forum.tabletpc.review e forum.farfarawaynews.com) che gestisco sul mio server. Tuttavia, aggiornando tutte e tre le istanze oggi, solo questa non si avvia dopo la ricostruzione. In allegato l’output del terminale.
Sembra che possa esserci un conflitto nella tua vote_history che sta causando problemi
discourse@discourse STATEMENT: INSERT INTO question_answer_votes (post_id, user_id, created_at)
SELECT
X.post_id AS post_id,
(X.value->>'user_id')::int AS user_id,
(X.value->>'created_at')::timestamp AS created_at
FROM (
SELECT
post_id,
jsonb_array_elements(value::jsonb) AS value
FROM post_custom_fields WHERE name = 'vote_history'
) AS X
WHERE (X.value->>'action') != 'destroy'
ORDER BY (X.value->>'created_at')::timestamp DESC
ON CONFLICT DO NOTHING
rake aborted!
StandardError: Si è verificato un errore, questa e tutte le migrazioni successive sono state annullate:
2 Mi Piace