We have a requirement to store a timestamp alongside the filehash information, as we use the hash for verification that also uses a timestamp. We've written a patch to add this functionality, which is a fairly simple addition.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | add_a_timestamp_for_the-2816247-6.diff | 2.8 KB | mfb |
Comments
Comment #2
xtfer commentedPatch attached
Comment #3
mfbThis seems worth adding at least on Drupal 7, because there is just a timestamp column in the file_managed table, rather than created and changed columns.
However the patch is wrong, it removes a bunch of unrelated code.
Comment #4
mfbIn the 2.x branch, the file hash is now saved to the file_managed table itself, where we have created and changed timestamp columns. There's also an option to add an additional "original" hash column that will not be updated when the file is saved. If it's necessary for some sites, we could even provide an option to add filehash timestamp column(s) to that table?
Comment #5
mfbMoving this back to 7.x-1.x as EOL has been extended, so it seems reasonable to add features there.
Comment #6
mfbComment #8
mfb