-- #199: integrity hash for uploaded files. New uploads store the SHA-256 of -- their bytes at write time; existing rows are hashed by the nightly -- backfill (part of the orphan-file-sweep job), which reads the uploads -- volume — something this SQL migration cannot do. ALTER TABLE "attachments" ADD COLUMN "sha256" TEXT;