• Thanks for the script. 🙂

    It's a good idea, but potentially you could get duplicates, where you have multiple foreign keys between the same 2 tables.

    But those could easily be addressed manually as that part of the script would fail.