Output migrations to a file, including incremented versions (for both integer and timestamp versioning)
fix missed refactoring