diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-05-26 16:12:10 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-05-26 16:12:10 -0400 |
commit | 783d66de894c37fba46a12cd4c4b30910cf421c3 (patch) | |
tree | e2774ae585467dc9ee7ca282fc9685dd7342cdb9 /lib/sqlalchemy/orm/attributes.py | |
parent | 5531cec630ee75bfd7f5848cfe622c769be5ae48 (diff) | |
download | sqlalchemy-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.py | 1 |
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, |