The 6.x-2.x version uses separate fields for source and destination files, while the 6.x-1.x version uses one field for all files: the original as well as the converted files. For users migrating to the new version there should be a way to convert existing nodes to the new storage schema. The steps involved would be:
* Admin defines new fields in the corresponding content type.
* Some code goes through each node where the old field is populated and moves the files to the new fields.
This could be implemented as a PHP snippet that admins can adjust and run with Devel's code executor for example, as a standalone module with configuration options for the migration, or as an embedded feature in FFmpeg Converter proper. It would not be possible to do it in an update function, because the admin's input is required to determine which fields to use (unless the new fields were created automatically, but that seems rather intrusive).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ffmpeg_converter_migrate.txt | 4.71 KB | zoo33 |
Comments
Comment #1
zoo33 commentedThis is some code I wrote a while back as first steps towards creating a migration feature or script. It contains a couple of functions that should provide the fundamentals, but none of it has been tested yet. Still unsure how this should be implemented with regard to UI etc.