Skip to content

Fix orphan files query: publishing_versions instead of posts.data - #471

Merged
ddon merged 1 commit into
BeamLabEU:mainfrom
timujinne:fix/orphan-query-publishing-versions
Apr 1, 2026
Merged

Fix orphan files query: publishing_versions instead of posts.data#471
ddon merged 1 commit into
BeamLabEU:mainfrom
timujinne:fix/orphan-query-publishing-versions

Conversation

@timujinne

Copy link
Copy Markdown
Contributor

Summary

  • Fix 500 error on admin media page (/admin/media)
  • Migration v88 moved data column from phoenix_kit_publishing_posts to phoenix_kit_publishing_versions, but the orphan files query in storage.ex still referenced the old pp.data column
  • Updated query to use phoenix_kit_publishing_versions pv with correct field featured_image_uuid

Test plan

  • Navigate to /admin/media — page should load without errors
  • Verify orphan file count is calculated correctly
  • Test file cleanup (delete orphaned files) still works

🤖 Generated with Claude Code

Migration v88 moved data column from phoenix_kit_publishing_posts
to phoenix_kit_publishing_versions, but the orphan files query
still referenced the old pp.data column, causing a 500 error
on the admin media page.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ddon
ddon merged commit e7eb46e into BeamLabEU:mainApr 1, 2026
ddon added a commit that referenced this pull request Apr 2, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
timujinne pushed a commit to timujinne/phoenix_kit that referenced this pull request May 13, 2026
…ishing-versions
Fix orphan files query: publishing_versions instead of posts.data
@timujinne
timujinne deleted the fix/orphan-query-publishing-versions branch June 25, 2026 08:42
Sign up for freeto 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.

2 participants

@timujinne@ddon