Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rewrite prune cache worker queries to respect FK constraints #1233

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

nikclayton
Copy link
Contributor

Previous queries to delete stale data from the database could fail due to the new foreign key constraints.

Rewrite them so statuses and accounts referenced by cached notifications are not deleted.

Previous queries to delete stale data from the database could fail
due to the new foreign key constraints.

Rewrite them so statuses and accounts referenced by cached notifications
are not deleted.
@nikclayton nikclayton merged commit ab95891 into pachli:main Jan 25, 2025
24 checks passed
@nikclayton nikclayton deleted the pcw-query-fix branch January 25, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant