summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2023-05-11 17:20:21 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2023-05-11 17:20:21 +0000
commit58d37abb049986c7cddf277c4946d7930e3c1635 (patch)
treef77809c141ef8b4c9d656b1976f12c0ff0ead10f /doc
parent7db1ced9e33d33da89f934107eeabe9ac337ae5b (diff)
parent73a273c90cda2369ec071435edd9c6dc5c1d31c4 (diff)
downloadsqlalchemy-58d37abb049986c7cddf277c4946d7930e3c1635.tar.gz
Merge "return empty MappedColumn() at early pep-593 step" into main
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/unreleased_20/9766.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_20/9766.rst b/doc/build/changelog/unreleased_20/9766.rst
new file mode 100644
index 000000000..588ce1791
--- /dev/null
+++ b/doc/build/changelog/unreleased_20/9766.rst
@@ -0,0 +1,11 @@
+.. change::
+ :tags: bug, orm
+ :tickets: 9766
+
+ Fixed issue in new ORM Annotated Declarative where using a
+ :class:`_schema.ForeignKey` (or other column-level constraint) inside of
+ :func:`_orm.mapped_column` which is then copied out to models via pep-593
+ ``Annotated`` would apply duplicates of each constraint to the
+ :class:`_schema.Column` as produced in the target :class:`_schema.Table`,
+ leading to incorrect CREATE TABLE DDL as well as migration directives under
+ Alembic.