Defect #21123
closed
Extend a content_type field for Attachment
Added by Ivan Zabrovskiy about 9 years ago.
Updated almost 9 years ago.
Description
Now content_type field has 30 symbols limit. In case of using Attachment for custom models this limitation is very uncomfortable. For example, if I have a model into module, then full name of model always will be greater then 30 symbols. Moreover for this type of models Attachment will be saved without warnings or errors. But cuntent_type will be cuted and record become invalid.
Same thing can happens with disk_filename, which has 255 limit. But in this case situation can by fixed by moving of Redmine directory closer to root of file system.
- Tracker changed from Patch to Feature
- Tracker changed from Feature to Defect
- Target version set to 3.2.0
I see attachment.content_type is varchar(30) on MySQL.
But, r739 and r1222 changed limits.
Bug of migration?
r1222 auth_sources.account is varchar(30), too.
But r1222 changesets.committer is varchar(255).
I don't know why?
- Target version deleted (
3.2.0)
I ran "rake db:migrate" on Ruby 1.9.3 MySQL at 2.6-stable r14890.
attachment.content_type, auth_sources.account and changesets.committer are varchar(255).
It seems bug of rails or mysql adapter in old version.
Toshi MARUYAMA wrote:
I ran "rake db:migrate" on Ruby 1.9.3 MySQL at 2.6-stable r14890.
On new MySQL database.
- Status changed from New to Resolved
You right. All this fields has a 255 limit. My apologies. Looks like this is my fault during Redmine installation. Thanks for help!
- Status changed from Resolved to Closed
Thank you for your feedback.
Also available in: Atom
PDF