7eec6758

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Let SQLite assign media IDs on import (#235)

Drop the startID parameter from tinybeans.Convert and the explicit id from
InsertMediaItem so SQLite assigns each media item's primary key. Convert still
orders entries newest-first, so insertion order yields IDs in display order.
InsertMediaItem now returns the assigned ID, which writeMetadataToDB uses to
link each entry's comments and reactions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/235

Suite timing

Time to Start Worker time Duration Time to finish
Config 2s 15s 15s 17s
Eval 15s 42s 42s 58s
Build 28s 1m32s 18s 46s
Suite 2s 2m30s 56s 58s

Timeline

0s10s20s30s40s50s