-- Add content-based file hash to documents for annotation versioning
ALTER TABLE documents
    ADD COLUMN file_hash VARCHAR(64);

-- Each annotation remembers which file version it was created against
ALTER TABLE document_annotations
    ADD COLUMN file_hash VARCHAR(64);
