Replies: 2 comments 9 replies
-
Are you sure that association in There is a There's also a broader URL problem — it's not just files that will have the old URL, it's internal links to your own discussions you created. There's certainly an argument that the Postscript should be more aggressive in its cleanup — URLs, emojis, and perhaps other post formatting work. One thing you'll probably keep running into is that Flarum is far more aggressive in its data strictness than Vanilla was. Whenever we built a data structure in Vanilla, top of mind was how we were going to import various systems into it, and so we made a lot of things optional — a "graceful degradation" if data was missing. Flarum follows a "don't trust it if anything is slightly off" philosophy, so it can be very fiddly to get each piece working 100%. |
Beta Was this translation helpful? Give feedback.
-
@MrCaspan How are you SQL converting the attachments? I looked at this 6-8 months ago so it is not fresh on my mind but I had considered converting the attachments to embedded images. Does this make sense? |
Beta Was this translation helpful? Give feedback.
-
So I am now on to testing transferring my image imbeds. The URL Imbeds that are in a post are easy to deal with. Side problem is Vanilla put absolute paths to each image IE https://domain.com/uploads/editor/es/ererwerwer.jpg instead of a relative path.
This is not the end of the world because I can just run a quick SQL query to update any of these absolute paths to relative paths
SQL For anyone that might need to do the same!
The real problem I am having is with attachments, it seems your tool has populated the
fof_upload_files
table with all the files form the old forum but they are not attached to any post. It seems like there is afof_upload_file_posts
table that keeps a record of the ID of each post that a file is attached to. I tried manually adding one of my attachments here and link it to a post id. It seems like you need to reference in the post the UUID of the file, see example below of an attachment I did using the new system.Add the file info to the
fof_upload_files
table (with UUID??)Add the post ID and attachment ID to the
fof_upload_file_posts
Add the code to the end of the post.
Here is a sample of what that embed code for an attachment looks like
Any ideas if this will work or expected to work?
Beta Was this translation helpful? Give feedback.
All reactions