summaryrefslogtreecommitdiff
path: root/scripts/prepare_commit_msg.py
diff options
context:
space:
mode:
authorAndrea Zanotto <andrea.zanotto@zoppas.com>2026-04-23 11:20:58 +0200
committerJacob Walls <jacobtylerwalls@gmail.com>2026-05-07 08:02:51 -0400
commit21c51c2623a966ba1ad8fd10e36bc8bbec93b70e (patch)
tree6e89d33099a30427925d6c0a0ef5c453872b83f4 /scripts/prepare_commit_msg.py
parent8f0abd228750f2146749260d607279eb96a88c25 (diff)
Fixed #37060 -- Propagated AlterField through attname-based to_field references.
Schema dependency discovery treated to_field values as raw field names, so attname aliases such as "primary_id" were not matched to the underlying relation field "primary". As a result, AlterField on a unique target field updated direct dependencies but missed transitive attname-based references. Resolved the dependency matching by comparing resolved remote fields rather than only field names, and updated SQLite's related-table rebuild path to use the same recursive dependency discovery. Added a regression test covering a transitive relation chain where ForeignKey(..., to_field="primary_id") must widen along with the unique leaf field it ultimately references.
Diffstat (limited to 'scripts/prepare_commit_msg.py')
0 files changed, 0 insertions, 0 deletions