def METHOD_NAME(config, database):
    """
    Run up migration.
    :param config: Object holding configuration details about Submitty
    :type config: migrator.config.Config
    :param database: Object for interacting with given database for environment
    :type database: migrator.db.Database
    """
    database.execute("ALTER TABLE IF EXISTS ONLY emails DROP CONSTRAINT IF EXISTS emails_user_id_fk;")
    database.execute("ALTER TABLE IF EXISTS ONLY emails ADD CONSTRAINT emails_user_id_fk FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE;")
    database.execute("ALTER TABLE IF EXISTS ONLY sessions DROP CONSTRAINT IF EXISTS sessions_fkey")
    database.execute("ALTER TABLE ONLY sessions ADD CONSTRAINT sessions_fkey FOREIGN KEY (user_id) REFERENCES users(user_id) ON UPDATE CASCADE ON DELETE CASCADE;")
    database.execute("""