summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/attributes.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-05-26 16:12:10 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-05-26 16:12:10 -0400
commit783d66de894c37fba46a12cd4c4b30910cf421c3 (patch)
treee2774ae585467dc9ee7ca282fc9685dd7342cdb9 /lib/sqlalchemy/orm/attributes.py
parent5531cec630ee75bfd7f5848cfe622c769be5ae48 (diff)
downloadsqlalchemy-783d66de894c37fba46a12cd4c4b30910cf421c3.tar.gz
QueryableAttribute can be used as DDL column
We have a lot of mappings with like ForeignKey(A.id) so this needs to be included. Change-Id: I8ac4211fb09720f093fe7f6353f365ee1d7faaae
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r--lib/sqlalchemy/orm/attributes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py
index b5faa7cbf..bb7eda5ac 100644
--- a/lib/sqlalchemy/orm/attributes.py
+++ b/lib/sqlalchemy/orm/attributes.py
@@ -136,6 +136,7 @@ class QueryableAttribute(
interfaces.PropComparator[_T],
roles.JoinTargetRole,
roles.OnClauseRole,
+ roles.DDLConstraintColumnRole,
sql_base.Immutable,
cache_key.SlotsMemoizedHasCacheKey,
util.MemoizedSlots,