Restore nulled child links as well as a deleted parent
When a PostgreSQL parent deletion mixes ON DELETE CASCADE and ON DELETE SET NULL, recreating the parent—even with its original ID—does not restore the aggregate. Cascaded membership or routing rows are gone, while surviving child rows have lost their parent association. Recover t…