Skip to content

Commit

Permalink
Fix migrations, #11117
Browse files Browse the repository at this point in the history
  • Loading branch information
njkim committed Aug 2, 2024
1 parent a80660a commit ca971fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions arches/app/models/migrations/11117_add_bulk_concept_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
class Migration(migrations.Migration):

dependencies = [
("models", "10999_update_principaluser"),
("models", "10799_geojsongeometry_featureid"),
]

add_bulk_concept_editor = """
insert into etl_modules (
INSERT INTO etl_modules (
etlmoduleid,
name,
description,
Expand All @@ -25,7 +25,7 @@ class Migration(migrations.Migration):
helpsortorder,
helptemplate
)
values (
VALUES (
'87ce44cd-3935-49fb-a9ff-37b256d23ec9',
'Bulk Replace Concept',
'Replace concept',
Expand All @@ -43,7 +43,9 @@ class Migration(migrations.Migration):
)
"""
remove_bulk_concept_editor = """
delete from etl_modules where etlmoduleid = '87ce44cd-3935-49fb-a9ff-37b256d23ec9';
DELETE FROM load_staging WHERE loadid IN (SELECT loadid FROM load_event WHERE etl_module_id = '87ce44cd-3935-49fb-a9ff-37b256d23ec9');
DELETE FROM load_event WHERE etl_module_id = '87ce44cd-3935-49fb-a9ff-37b256d23ec9';
DELETE FROM etl_modules WHERE etlmoduleid = '87ce44cd-3935-49fb-a9ff-37b256d23ec9';
"""

add_functions_to_edit_concepts = """
Expand Down

0 comments on commit ca971fb

Please sign in to comment.