Skip to content

Commit

Permalink
create migration to insert new ids filter into db, re #11579
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Oct 27, 2024
1 parent 420991e commit 332b0fb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions arches/app/models/migrations/11579_ids_search_filter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("models", "'11042_update__arches_staging_to_tile'"),
]

forward = """
INSERT INTO search_component
VALUES (
'f1856bfb-c3c4-4d67-8f23-0aa3eef3a160', 'Ids Filter', '', 'ids.py', 'IdsFilter', 'ids-filter-type', NULL, 'ids', '{}'
);
"""

reverse = """
DELETE FROM search_component WHERE searchcomponentid = 'f1856bfb-c3c4-4d67-8f23-0aa3eef3a160';
"""

operations = [
migrations.RunSQL(
forward,
reverse,
),
]

0 comments on commit 332b0fb

Please sign in to comment.