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

btmash’s picture

hmm, that's not a bad idea - let me see what I can do (how about ... 'erm_')

btmash’s picture

Status: Active » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.