¡Hola! Intenté actualizar mi instancia de Discourse v3.2.0 a v3.3.0. Cuando estaba ejecutando las migraciones de la base de datos, falló.
Execute db:migrate
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)
ERROR: cannot drop column user_id of table invites because other objects depend on it
DETAIL: trigger invites_user_id_readonly on table invites depends on column user_id of table invites
HINT: Use DROP ... CASCADE to drop the dependent objects too.
Arreglé esto eliminando 3 triggers en la base de datos:
DROP TRIGGER invites_user_id_readonly ON invites;
DROP TRIGGER invites_redeemed_at_readonly ON invites;
DROP TRIGGER user_api_keys_scopes_readonly ON user_api_keys;
Mi pregunta real es, ¿pueden confirmar si esto es un error del lado de Discourse? ¿Tienen planes de arreglarlo en el futuro?
Tengo PostgreSQL 14.10 en ejecución.