chore: move photo-specific fields from pois to photos table #11
No reviewers
Labels
No labels
agent
blocked
agent
new
agent
review
agent
working
complexity
high
complexity
low
priority
high
priority
low
priority
medium
risk
high
risk
low
risk
medium
type
bug
type
chore
type
feature
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tfks/trippin!11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/move-photo-fields"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs: #5
Summary
0008_move_photo_fields.sqlwhich movestook,url_original,url_optimized,url_thumbnail,width,height, andexiffrompoisinto thephotoschild table (shared PK withpois). Backfills existing data and recreates affected indexes.pois_fullview (LEFT JOINpois+photos) so all existingSELECT *read queries return the same column set without type changes.optimize-phototask,crop-photocuration handler, POI update endpoint) to write moved fields tophotos.poisdirectly (globe.tsx, trip delete storage collection, analyze endpoint, reencode script, curationloadPhoto/loadPhotosForTrip).Test plan
deno fmt --check,deno lint,deno check src/all pass (verified locally)just migrate upagainst local Supabase — migration should apply cleanlyphotosrow receivesurl_original,took,exif,width,height;poisrow has none of those columnsoptimize-phototask: confirmphotos.url_optimized,photos.url_thumbnail,photos.width,photos.heightare settookfield: confirmphotos.tookis updatedgetTripGalleryPois: confirm ordering bytookstill works