The problem with doing that is that it could cause issues with the filedata table. Every attachment has an attachment.filedataid field which links it to the filedata table. Every row in the filedata table has a refcount (the number of attachments that use that item) and you are doing nothing to remove the row in the filedata table (if it needs to be removed - if the refcount was 1 and then you remove the attachment, then the filedata row needs to be removed).
Announcement
Collapse
No announcement yet.
Eliminating Missing Attachments
Collapse
X
-
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css help -
The problem with doing that is that it could cause issues with the filedata table. Every attachment has an attachment.filedataid field which links it to the filedata table. Every row in the filedata table has a refcount (the number of attachments that use that item) and you are doing nothing to remove the row in the filedata table (if it needs to be removed - if the refcount was 1 and then you remove the attachment, then the filedata row needs to be removed).
NelsonNelson
www.Hobby-Machinist.comComment
-
Simple for you, unknown for me. I'm ignorant of SQL so if it takes more than deleting the attachment row in the database, I guess I should give it. I just thought it would be healthier for the database to eliminate thesemissing attachment errors.
NelsonNelson
www.Hobby-Machinist.comComment
-
If you are not common with what has been written here regarding SQL queries, you should not try it yourself. Leaving this as it is will be no problem for the system.No private support, only PM me when I ask for it. Support in the forums only.Comment
-
Agreed, I cannot do the "simple" inquiry myself, so I had better leave it alone to prevent a disaster (although I DO back up each day!).Nelson
www.Hobby-Machinist.comComment
-
Maybe one of you experts can help us out with a mod that does this. I will make a suggestion.Nelson
www.Hobby-Machinist.comComment
Related Topics
Collapse
-
by datacruxHello suypport, i found the erorr when i move attachment from database system to file system. I trying to move 300 attachment first, and found the erorr like this : Attachment Manager
Attachment...-
Channel: Support Issues & Questions
Fri 21 Feb '14, 9:24pm -
Comment