Skip to content

Commit

Permalink
fix ambiguous graphid refs in branch_views psql fn, re #11396
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Aug 23, 2024
1 parent 9012775 commit 8c88482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arches/app/models/migrations/7787_relational_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Migration(migrations.Migration):
join node_groups g on g.nodegroupid = n.nodegroupid
where n.nodeid = n.nodegroupid
and g.parentnodegroupid is null
and graphid = model_id
and n.graphid = model_id
loop
perform __arches_create_branch_views(node.nodeid, schema_name, '');
end loop;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Migration(migrations.Migration):
join node_groups g on g.nodegroupid = n.nodegroupid
where n.nodeid = n.nodegroupid
and g.parentnodegroupid is null
and graphid = model_id
and n.graphid = model_id
loop
perform __arches_create_branch_views(node.nodeid, schema_name, '');
end loop;
Expand Down Expand Up @@ -281,7 +281,7 @@ class Migration(migrations.Migration):
join node_groups g on g.nodegroupid = n.nodegroupid
where n.nodeid = n.nodegroupid
and g.parentnodegroupid is null
and graphid = model_id
and n.graphid = model_id
loop
perform __arches_create_branch_views(node.nodeid, schema_name, '');
end loop;
Expand Down

0 comments on commit 8c88482

Please sign in to comment.