fix mysql2 support while maintaining mysql compatibilityper via @ghazel

Based on cherry pick from un-merged PR #5 on upstream :
  https://github.com/ghazel/table_migrator/commit/f15a7660ecd27e77350547a44fa45595eee016bb

See also :
  https://github.com/freels/table_migrator/pull/5