We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398d6d7 commit 355c657Copy full SHA for 355c657
sqlalchemy_iris/alembic.py
@@ -7,6 +7,7 @@
7
from sqlalchemy.ext.compiler import compiles
8
from sqlalchemy.sql.base import Executable
9
from sqlalchemy.sql.elements import ClauseElement
10
+from sqlalchemy.sql.schema import CheckConstraint
11
from sqlalchemy.sql.type_api import TypeEngine
12
from sqlalchemy.sql import table
13
from sqlalchemy import types
@@ -134,6 +135,12 @@ def alter_column(
134
135
**kw,
136
)
137
138
+ def add_constraint(self, const: Any) -> None:
139
+ if isinstance(const, CheckConstraint):
140
+ # just ignore it
141
+ return
142
+ super().add_constraint(const)
143
+
144
145
class _ExecDropForeignKey(Executable, ClauseElement):
146
inherit_cache = False
0 commit comments