<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_migration(name, major_version, minor_version, db, mod, conf={}):
 """ Run migration script :param major_version: major version number of the migration :param minor_version: minor version number of the migration :param db: database connection object :param path: path of the migration script :param conf: application configuration (if any) """

    with db.transaction():
        mod.up(db, conf)
        set_version(db, name, major_version, minor_version)