Check attachment quotas against per-account totals instead of every repository

Every upload summed attachment sizes across all repositories. Each account now keeps its owned and uploaded bytes per repository, recomputed from that repository's rows on upload, sweep and deletion, so a retry or the cron backfill can't double-count. Until the backfill finishes, the old sum stays.

Assisted-by: Crush
taigrrcommitted parent 32e5c36825a8d1014ca805805c266f46aacb87a2548a1e8Browse files
7 files changed+156−27

Rendering diff…