Skip to content

Commit

Permalink
Fix reverse migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 22, 2024
1 parent bf41393 commit f9cd0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arches/app/models/migrations/11613_nodegroup_grouping_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def add_grouping_node(apps, schema_editor):
node_dict["grouping_node_id"] = node_dict["nodegroup_id"]
PublishedGraph.objects.bulk_update(published_graphs, ["serialized_graph"])

def remove_root_node(apps, schema_editor):
def remove_grouping_node(apps, schema_editor):
PublishedGraph = apps.get_model("models", "PublishedGraph")
published_graphs = PublishedGraph.objects.all()
for published_graph in published_graphs:
Expand Down Expand Up @@ -65,5 +65,5 @@ def remove_root_node(apps, schema_editor):
to="models.nodegroup",
),
),
migrations.RunPython(add_grouping_node, migrations.RunPython.noop),
migrations.RunPython(add_grouping_node, remove_grouping_node),
]

0 comments on commit f9cd0c7

Please sign in to comment.