def set_version(db, name, major_version, minor_version):
    """ 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
    """
    version = pack_version(major_version, minor_version)
    db.execute(SET_VERSION_SQL, dict(name=name, version=version))
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 ) )
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