]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
suffix index names with "_history" just like tables
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Jan 2024 19:06:01 +0000 (14:06 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Jan 2024 21:49:47 +0000 (16:49 -0500)
commitdab1da6049d210843c16d96b20ae0efc063eead3
tree4dcf0e435af1bd02d62798cb853074c099776ebe
parent14f30b85c7bea7839111bbe54576b290457e3a8d
suffix index names with "_history" just like tables

Fixed regression in history_meta example where the use of
:meth:`_schema.MetaData.to_metadata` to make a copy of the history table
would also copy indexes (which is a good thing), but causing naming
conflicts indexes regardless of naming scheme used for those indexes. A
"_history" suffix is now added to these indexes in the same way as is
achieved for the table name.

Fixes: #10920
Change-Id: I78823650956ff979d500bedbdbce261048894ce9
doc/build/changelog/unreleased_20/10920.rst [new file with mode: 0644]
examples/versioned_history/history_meta.py
examples/versioned_history/test_versioning.py