-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create migration to insert new ids filter into db, re #11579
- Loading branch information
1 parent
420991e
commit 332b0fb
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
), | ||
] |