]> 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:58 +0000 (16:49 -0500)
commit20d7fb68c2a8871d86f868bd7867b987e57425fe
treea2acc5a86a95c9beddcc5e73ce3cea9957a39c21
parent5d02b4152f61585da2c65e54ea6f33620183421b
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
(cherry picked from commit dab1da6049d210843c16d96b20ae0efc063eead3)
doc/build/changelog/unreleased_20/10920.rst [new file with mode: 0644]
examples/versioned_history/history_meta.py
examples/versioned_history/test_versioning.py