format_server_default
from .base import alter_table
from ..autogenerate import compare
+from ..util.sqla_compat import _is_type_bound
class MySQLImpl(DefaultImpl):
)
def drop_constraint(self, const):
- if isinstance(const, schema.CheckConstraint) and const._type_bound:
+ if isinstance(const, schema.CheckConstraint) and _is_type_bound(const):
return
super(MySQLImpl, self).drop_constraint(const)
try:
del self.named_constraints[const.name]
except KeyError:
- if const._type_bound:
+ if _is_type_bound(const):
# type-bound constraints are only included in the new
# table via their type object in any case, so ignore the
# drop_constraint() that comes here via the