You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
147834: workload/schemachanger: detect trigger-based self-dependencies in tableHasDependencies r=spilchen a=spilchen
Previously, tableHasDependencies excluded all self-dependencies under the assumption that they originated from foreign keys. However, triggers can also create self-references now (see #147018), and that should be counted as true dependencies since it will block things like a table rename.
This change updates the query to exclude only self-dependencies where the dependedonby_type is 'fk', allowing ones from triggers to be detected correctly.
Informs #147514
Epic: none
Release note: none
Co-authored-by: Matt Spilchen <[email protected]>
0 commit comments