mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 23:47:28 -02:30
Updating old migration for psycopg3
This commit is contained in:
committed by
John Westcott IV
parent
dfe8b3b16b
commit
2b8ed66f3e
@@ -2,9 +2,6 @@
|
|||||||
# Python
|
# Python
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
# Psycopg2
|
|
||||||
from psycopg2.extensions import AsIs
|
|
||||||
|
|
||||||
# Django
|
# Django
|
||||||
from django.db import connection, migrations, models, OperationalError, ProgrammingError
|
from django.db import connection, migrations, models, OperationalError, ProgrammingError
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@@ -136,8 +133,8 @@ class Migration(migrations.Migration):
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.RunSQL(
|
migrations.RunSQL(
|
||||||
[("CREATE INDEX host_ansible_facts_default_gin ON %s USING gin" "(ansible_facts jsonb_path_ops);", [AsIs(Host._meta.db_table)])],
|
sql="CREATE INDEX host_ansible_facts_default_gin ON {} USING gin(ansible_facts jsonb_path_ops);".format(Host._meta.db_table),
|
||||||
[('DROP INDEX host_ansible_facts_default_gin;', None)],
|
reverse_sql='DROP INDEX host_ansible_facts_default_gin;',
|
||||||
),
|
),
|
||||||
# SCM file-based inventories
|
# SCM file-based inventories
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
|
|||||||
Reference in New Issue
Block a user