PostgreSQL does not like nulls as FKs and one has to remove null constraint by hands. Look at logic.DepthFirstStrategy to see some work done. Happy crawling to all and beware nasty nulls...