"check_constraint": "check",
"column_check_constraint": "check",
"table_or_column_check_constraint": "check",
- "exclude_constraint": "exclude",
}
constraint_table = sqla_compat._table_for_constraint(constraint)
sqla_compat.constraint_name_or_none(constraint.name),
constraint_table.name,
schema=constraint_table.schema,
- type_=types[constraint.__visit_name__],
+ type_=types.get(constraint.__visit_name__, "generic"),
_reverse=AddConstraintOp.from_constraint(constraint),
)
eq_ignore_whitespace(
autogenerate.render_op_text(autogen_context, op_obj),
- "op.drop_constraint('t_excl_x', 'TTable', type_='exclude')",
+ "op.drop_constraint('t_excl_x', 'TTable', type_='generic')",
)
def test_json_type(self):