Use AddIndexConcurrently instead of AddIndex in the migration for host name lower index

This commit is contained in:
Dirk Julich
2026-06-17 18:16:57 +02:00
parent fd1745a375
commit 85db4cbb09

View File

@@ -1,15 +1,17 @@
from django.db import migrations, models
from django.contrib.postgres.operations import AddIndexConcurrently
from django.db.models.functions import Lower
class Migration(migrations.Migration):
atomic = False
dependencies = [
('main', '0205_add_ordering_to_instancegroup_and_workflow_nodes'),
]
operations = [
migrations.AddIndex(
AddIndexConcurrently(
model_name='host',
index=models.Index(
Lower('name'),