From 1c02de94ca5c5a5c328c350a592aa9dfbcb0bdf5 Mon Sep 17 00:00:00 2001 From: Dirk Julich Date: Thu, 18 Jun 2026 13:41:52 +0200 Subject: [PATCH] Revert AddIndexConcurrently to AddIndex for CI compatibility The api-migrations CI job runs against SQLite which does not support PostgreSQL-specific AddIndexConcurrently. Standard AddIndex works across all backends and the brief write lock during production upgrades is acceptable for this table size. Co-Authored-By: Claude Opus 4.6 --- awx/main/migrations/0206_add_host_name_lower_index.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/awx/main/migrations/0206_add_host_name_lower_index.py b/awx/main/migrations/0206_add_host_name_lower_index.py index e1156bd6a1..405285276b 100644 --- a/awx/main/migrations/0206_add_host_name_lower_index.py +++ b/awx/main/migrations/0206_add_host_name_lower_index.py @@ -1,17 +1,15 @@ 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 = [ - AddIndexConcurrently( + migrations.AddIndex( model_name='host', index=models.Index( Lower('name'),