|
You can switch from one storage system to another while importing files from one system to another using the following console command:
Copy to clipboard php console.php attachments:migrate
This migration tool is a two-way tool - can convert legacy attachments to files in galleries and vice-verse
Note that the usual way to migrate is from old attachments to file galleries. To do this, make sure that the feature_use_fgal_for_wiki_attachments preference is turned on.
Otherwise when moving files to legacy storage, you will need to manually update the associated wiki pages. Files from file galleries are replaced in wiki attachments and provide a table with mappings at the end with: file ID, file name, attachment ID, so users can override their uses manually
What exactly is migrated
When migrating from the old system (legacy storage) to the file galleries, wiki attachments are migrated to file galleries as db records and file contents are migrated to proper place (depending on how file galleries store files - db or disk). A special file gallery for wiki attachments with ID 3 is used to store these attached files.
|