diff --git a/etc/db/upgrades/upgrade10-83be83e4→53ed096e-v0.2.0.sql b/etc/db/upgrades/upgrade10-83be83e4→53ed096e-v0.2.0.sql new file mode 100644 index 0000000..c767759 --- /dev/null +++ b/etc/db/upgrades/upgrade10-83be83e4→53ed096e-v0.2.0.sql @@ -0,0 +1,84 @@ +-- Upgrade the database from commit 83be83e4 to 53ed096e. +-- +-- New schema version: 0.2.0 +-- +-- ATTENTION: +-- +-- ENSURE YOU HAVE BACKED UP THE DATABASE BEFORE RUNNING THIS SCRIPT. +-- +-- +-- NOTE: This upgrade affects all schemas in the database. +-- NOTE: Each application starts a transaction, which must be committed +-- or rolled back. +-- +-- This migrates the file hashes to address issue #173. +-- The new hashes use size, modification time, creation time and the +-- first half of the MD5 hex digest of the file's absolute path. +-- +-- It's a minor (rather than patch) version number increment because +-- changes to `bin/datastore.py` mean that the data is no longer +-- compatible with the hashing function. +-- +-- To apply, run as the dougal user: +-- +-- psql <