def visit_primary_key_constraint(self, constraint):
    if (len(constraint.columns) == 1):
        c = list(constraint)[0]
        if (c.primary_key and c.table.dialect_options['sqlite']['autoincrement'] and issubclass(c.type._type_affinity, sqltypes.Integer) and (not c.foreign_keys)):
            return None
    text = super(SQLiteDDLCompiler, self).visit_primary_key_constraint(constraint)
    on_conflict_clause = constraint.dialect_options['sqlite']['on_conflict']
    if ((on_conflict_clause is None) and (len(constraint.columns) == 1)):
        on_conflict_clause = list(constraint)[0].dialect_options['sqlite']['on_conflict_primary_key']
    if (on_conflict_clause is not None):
        text += (' ON CONFLICT ' + on_conflict_clause)
    return text
def visit_primary_key_constraint(self, constraint):
    if (len(constraint.columns) == 1):
        c = list(constraint)[0]
        if (c.primary_key and c.table.dialect_options['sqlite']['autoincrement'] and issubclass(c.type._type_affinity, sqltypes.Integer) and (not c.foreign_keys)):
            return None
    text = super(SQLiteDDLCompiler, self).visit_primary_key_constraint(constraint)
    on_conflict_clause = constraint.dialect_options['sqlite']['on_conflict']
    if ((on_conflict_clause is None) and (len(constraint.columns) == 1)):
        on_conflict_clause = list(constraint)[0].dialect_options['sqlite']['on_conflict_primary_key']
    if (on_conflict_clause is not None):
        text += (' ON CONFLICT ' + on_conflict_clause)
    return text