-- 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 <