diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 11:38:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 11:38:06 +0000 |
commit | ee84b6b24ce29905f5e28613fd59e0cfd637dfcc (patch) | |
tree | 358204ab558e829df49756832686253b79f54424 /lib/tasks | |
parent | 30f7be9c19777d2b8ec88507a466bd35ffa523e3 (diff) | |
download | redmine-ee84b6b24ce29905f5e28613fd59e0cfd637dfcc.tar.gz redmine-ee84b6b24ce29905f5e28613fd59e0cfd637dfcc.zip |
Adds a rake task to update attachments digests to SHA256 (#25240).
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16455 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/redmine.rake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake index f1827bb65..734cad0a4 100644 --- a/lib/tasks/redmine.rake +++ b/lib/tasks/redmine.rake @@ -26,6 +26,11 @@ namespace :redmine do task :move_to_subdirectories => :environment do Attachment.move_from_root_to_target_directory end + + desc 'Updates attachment digests to SHA256' + task :update_digests => :environment do + Attachment.update_digests_to_sha256 + end end namespace :tokens do |