mirror of
https://github.com/ansible/awx.git
synced 2026-06-22 23:27:46 -02:30
Use AddIndexConcurrently instead of AddIndex in the migration for host name lower index
This commit is contained in:
@@ -1,15 +1,17 @@
|
|||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
from django.contrib.postgres.operations import AddIndexConcurrently
|
||||||
from django.db.models.functions import Lower
|
from django.db.models.functions import Lower
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
atomic = False
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('main', '0205_add_ordering_to_instancegroup_and_workflow_nodes'),
|
('main', '0205_add_ordering_to_instancegroup_and_workflow_nodes'),
|
||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.AddIndex(
|
AddIndexConcurrently(
|
||||||
model_name='host',
|
model_name='host',
|
||||||
index=models.Index(
|
index=models.Index(
|
||||||
Lower('name'),
|
Lower('name'),
|
||||||
|
|||||||
Reference in New Issue
Block a user