Changing fk SQL generation code.
Test circular FK.