Converts migration filename to a migration number.

def _MigrationFilenameToInt(fname):
  """Converts migration filename to a migration number."""
  base, _ = os.path.splitext(fname)
  return int(base)