Fixes #11166: migrate command new option `useTablePrefix`
Fixes #11207: migrate command can create foreign keys