the line
$temp_table_name = 'entityreference_migration_' . $table_name;
Adds a lot of characters to the existing table name. For us, it exceeded the total max length of mysql table names, which is 64 characters.
Could we use something like 'tmp' as a prefix, or throw an error, or truncate the end of the $table_name string?
Comments
Comment #1
btmash commentedhmm, that's not a bad idea - let me see what I can do (how about ... 'erm_')
Comment #2
btmash commentedI just committed the code if you want to give it a try. The beginning is now 'er_m_' and I trim it down to 64 characters in the event we are dealing with an exceptionally long field name.