SIGN IN SIGN UP

Fix minor problems with foreign key constraints where the parent table is the same as the child table.

FossilOrigin-Name: 442d8d8bfe443797482354ba8766d97d3d6acaae
D
dan committed
b328debc6a035a9c91306b5a3bf95aea2fc564be
Parent: 9dde7cb