6 Commits
Author SHA1 Message Date
Leon Tonhäuser 7204dd6b60 feat: v2.2 batch (calendar, self-service, sort, description, filename search, stats, collab, invoice) on pre-redesign base 2026-11-30 21:20:13 +01:00
Leon Tonhäuser 0b65fbba16 fix: rebuild migration history as baseline so migrate works on prod
Squash the 13 historical migrations into one generated baseline whose
journal entry reuses the original 0000 timestamp: the migrator skips it
on every existing database (prod journal stuck at 0006) and applies it
only on fresh ones. Parity with the old chain verified via pg_dump diff
plus fresh/existing/prod-simulated drizzle-kit migrate runs. Historical
files move to drizzle-history/pre-squash-2026-08/ for integration tests
that exercise legacy migration behavior.

Also repair db tests that already failed before this change:
- raw SQL targeted users, but the table has always been "user"
- membership recheck mocked legacy getAsset.albums instead of searchPhotos
- audit rollback assertion walks drizzle's wrapped error cause chain
- keyset index probe pinned to NULLS LAST ordering, removing a planner
  cost tie-break that flipped with index creation order
2026-08-25 11:56:52 +02:00
Leon Tonhäuser c400167b8f fix: enforce one active logical album grant 2026-08-10 12:14:38 +02:00
Leon Tonhäuser 3cdca5c82c fix: preserve legacy accounting migration data 2026-08-10 11:39:44 +02:00
Leon Tonhäuser 3de1530074 fix: harden usage accounting idempotency 2026-08-10 10:59:12 +02:00
Leon Tonhäuser 22fe6bf659 feat: add usage and download intent accounting 2026-08-09 22:52:27 +02:00