Skip to content

Commit

Permalink
Merge branch 'production' of github.com:unepwcmc/SAPI into production
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnieszka Figiel committed Oct 1, 2013
2 parents 30090eb + 3581e88 commit 2f3c94f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion db/plpgsql/001_rebuild_taxonomy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ CREATE OR REPLACE FUNCTION rebuild_taxonomy_for_node(node_id integer) RETURNS vo
FROM q
WHERE taxon_concepts.id = q.id;

PERFORM rebuild_taxonomic_positions_for_node(node_id);
-- do not recalculate position for individual node
-- as it takes too long to run on insert trigger
IF node_id IS NULL THEN
PERFORM rebuild_taxonomic_positions_for_node(node_id);
END IF;

END;
$$;
Expand Down

0 comments on commit 2f3c94f

Please sign in to comment.