diff --git a/arches/app/models/migrations/11579_ids_search_filter.py b/arches/app/models/migrations/11579_ids_search_filter.py new file mode 100644 index 00000000000..9d197e5bb0c --- /dev/null +++ b/arches/app/models/migrations/11579_ids_search_filter.py @@ -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, + ), + ]