diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 11:11:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-03 11:11:36 +0000 |
commit | 30f7be9c19777d2b8ec88507a466bd35ffa523e3 (patch) | |
tree | a0af4006841932b16b26b275906f6fd807194caf /db | |
parent | 9441ab0ca8e8c4a51bf6716dbdaae0aea4f3fa21 (diff) | |
download | redmine-30f7be9c19777d2b8ec88507a466bd35ffa523e3.tar.gz redmine-30f7be9c19777d2b8ec88507a466bd35ffa523e3.zip |
Changes the digest used for attachments to SHA256 (#25240).
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@16454 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb b/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb new file mode 100644 index 000000000..df710e82c --- /dev/null +++ b/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb @@ -0,0 +1,8 @@ +class ChangeAttachmentsDigestLimitTo64 < ActiveRecord::Migration + def up + change_column :attachments, :digest, :string, limit: 64 + end + def down + change_column :attachments, :digest, :string, limit: 40 + end +end |