code: def set_version(db, name, major_version, minor_version):
      
      version = pack_version(major_version, minor_version)
      db.execute(SET_VERSION_SQL, dict(name=name, version=version))
docs: Set database migration version
  
      :param db:             connetion object
      :param name:           associated name
      :param major_version:  integer major version of migration
      :param minor_version:  integer minor version of migration