Decide whether a shared thumbnail needs a copy from the same screenshot
lookup the renamed asset will use, instead of from the filesystem. A
collation that ignores case (MariaDB) keeps resolving the shared row, so
nothing is copied; an exact one (PostgreSQL) gets its own row. When the
filesystem ignores case too, the new spelling already names the shared
file, so only the row is added and a failed rename leaves the file alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>