Fix MySQL migrations.

Fix Issue U4-3783.  Corrects problems that prevent database migrations to 7.0.0 from working with MySQL databases.