def is_in_tracking_table(self, connection_hash, script_name):
        """Returns true if script is in tracking table (assumes tbl is present)"""
        sql = "select script_name from __schema_migrations where script_name = '{0}'".format(script_name)
        conn = self.__get_open_connection(connection_hash)
        cursor = conn.cursor()
        cursor.execute(sql)
        r = cursor.fetchall()
        cursor.close()
        conn.close()
        return (len(r) > 0)
dataset/ETHPy150Open jzohrab/DbMigrator/dbMigrator/postgresdatabasehandler.py/PostgresDatabaseHandler.is_in_tracking_table/original