hacked migration to work with mysql