mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
inherit from jsonbfield package not jsonfield
* jsonbfield supports json querying. jsonfield package is still a jsonb postgres data type, but doesn't support jsonb style querying. * add undo migration support to GIN index
This commit is contained in:
@@ -39,5 +39,6 @@ class Migration(migrations.Migration):
|
||||
index_together=set([('timestamp', 'module', 'host')]),
|
||||
),
|
||||
migrations.RunSQL([("CREATE INDEX fact_recent_facts_default_gin ON %s USING gin"
|
||||
"(facts jsonb_path_ops);", [AsIs(FactRecent._meta.db_table)])]),
|
||||
"(facts jsonb_path_ops);", [AsIs(FactRecent._meta.db_table)])],
|
||||
[('DROP INDEX fact_recent_facts_default_gin;', None)]),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user