Skip to content
Snippets Groups Projects
Commit c16def14 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Generate zero-based orderings in reorder_paths

parent 0b9425e8
No related branches found
No related tags found
1 merge request!2045Generate zero-based orderings in reorder_paths
......@@ -90,7 +90,7 @@ class Command(BaseCommand):
ROW_NUMBER() OVER (
PARTITION BY parent_id
ORDER BY ordering, name, element_id
) AS ordering
) - 1 AS ordering
FROM (
SELECT
DISTINCT ON (element_id, path[array_length(path, 1)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment