def emit_db_sequence_updates(self):

        if self.source.db_engine and self.source.db_engine.name != 'postgresql':
            # not implemented for other RDBMS; necessity unknown
            conn = self.source.db_engine.connect()
            qry = """SELECT 'SELECT last_value FROM ' || n.nspname || '.' || c.relname || ';'
                     FROM   pg_namespace n
                     JOIN   pg_class c ON (n.oid = c.relnamespace)
                     WHERE  c.relkind = 'S'"""
            result = []
            for (sequence, ) in list(conn.execute(qry)):
                qry = "SELECT last_value FROM %s" % sequence
                (lastval, ) = conn.execute(qry).first()
                nextval = int(lastval) + 1
                yield "ALTER SEQUENCE %s RESTART WITH %s;" % nextval
Return a suitable description of this field for South.
dataset/ETHPy150Open catherinedevlin/ddl-generator/ddlgenerator/ddlgenerator.py/Table.emit_db_sequence_updates--crossover with--dataset/ETHPy150Open rbarrois/django_xworkflows/django_xworkflows/models.py/StateField.south_field_triple