Skip to content

v0.2.1

Choose a tag to compare

@bigfa bigfa released this 07 Feb 07:35
· 11 commits to main since this release
e096f12

What's New

Added

  • Public media details endpoint GET /api/media/{id}: returns full photo info including categories, tags, EXIF, and like status
  • Upload duplicate detection: SHA-256 hash-based detection that skips existing files and notifies users
  • Database field file_hash: stores image hash for duplicate detection

Changed

  • Unified all timestamps to ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ)

Upgrade Guide

Upgrading from v0.2.0 requires a database migration:

# Cloudflare D1 - Local development
npx wrangler d1 execute <DB_NAME> --local --file=drizzle/0003_add_media_file_hash.sql

# Cloudflare D1 - Remote production
npx wrangler d1 execute <DB_NAME> --remote --file=drizzle/0003_add_media_file_hash.sql

# Docker (SQLite) - Execute inside container
sqlite3 /data/photos.db < drizzle/0003_add_media_file_hash.sql

# Supabase (PostgreSQL)
psql -h <host> -U postgres -d postgres -f drizzle/0003_add_media_file_hash.sql

Full Changelog: v0.2.0...v0.2.1