Skip to content

Commit

Permalink
Remove reference datatype nodes, #10552
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt authored and jacobtylerwalls committed May 15, 2024
1 parent b33ba87 commit 5b5637a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arches/app/models/migrations/10552_add_reference_datatype.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ class Migration(migrations.Migration):
""",
reverse_sql="""
DELETE FROM cards_x_nodes_x_widgets
WHERE nodeid IN (SELECT nodeid FROM nodes WHERE datatype = 'reference');
DELETE FROM edges
WHERE domainnodeid IN (SELECT nodeid FROM nodes WHERE datatype = 'reference')
OR rangenodeid IN (SELECT nodeid FROM nodes WHERE datatype = 'reference');
DELETE FROM nodes WHERE datatype = 'reference';
DELETE FROM widgets WHERE widgetid = '19e56148-82b8-47eb-b66e-f6243639a1a8';
DELETE FROM d_data_types WHERE datatype = 'reference';
DELETE FROM tiles WHERE nodegroupid IN (SELECT nodegroupid FROM nodes WHERE datatype = 'reference');
""",
),
]

0 comments on commit 5b5637a

Please sign in to comment.