こんにちは! Discourse v3.2.0 インスタンスを v3.3.0 にアップグレードしようとしました。データベース移行を実行中に失敗しました。
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.
データベースで 3 つのトリガーを削除することでこれを修正しました。
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;
私の実際の質問は、これが Discourse 側のエラーであると確認できますか? 将来的に修正する予定はありますか?
PostgreSQL 14.10 を実行しています。