fix for migrations to make it work in mysql