[TYPO3-dev] FAL migration for custom tables

Benjamin Mack benni at typo3.org
Wed Jun 26 16:51:45 CEST 2013


Hey Francois,

thanks for digging into it.

First of all, there are two wizards:

1. DB fields
One wizard that allows to migrate DB group fields to be migrated to IRRE
fields and move files from uploads/.../myfile.txt to
fileadmin/_migrated_/. This wizard is very flexible and can be used for
each DB field of an extension. Once the wizard is done, the TCA part of
the ext_tables.php needs to be adjusted. You can see that in the tca.php
of tt_content on the very bottom.

You can hook into that wizard with your own extension to migrate to
sys_file_reference, the same way e.g. tt_content.uploads does it.

2. RTE magic images migration
The RTE migration handles only the magic images that are usually put in
uploads/RTEmagic_* directly. The files are put to
"fileadmin/_migrated_/RTE/", and thus are moved there.

The rename moves the file, and the getFile() makes sure that the
indexing process for that file is triggered (that was at the time being,
if this behaviour has changed, we need to adapt the wizard). But this
way, the file is indexed (in its new position) and we get a UID of the
file record.

Then, instead of this "ref_string" indexing, we index hard to a sys_file
UID record. That is actually the big advantage, because we don't need
the softref stuff anymore.

However, this wizard is not "field-based" like the other, but just looks
into the sys_refindex table.

Does this give you a bit more insight? Do you solely struggle with the
RTE migration wizard or with the other one as well?

All the best,
Benni.



More information about the TYPO3-dev mailing list