diff --git a/awx/main/migrations/0130_event_partitions.py b/awx/main/migrations/0130_event_partitions.py index 571d06924f..0afd02f1ad 100644 --- a/awx/main/migrations/0130_event_partitions.py +++ b/awx/main/migrations/0130_event_partitions.py @@ -51,7 +51,7 @@ def migrate_event_data(apps, schema_editor): # TODO: do more generic search for pkey constraints # instead of hardcoding this one that applies to main_jobevent cursor.execute( - f'ALTER TABLE tmp_{tblname} DROP CONSTRAINT {tblname}_pkey1' + f'ALTER TABLE tmp_{tblname} DROP CONSTRAINT tmp_{tblname}_pkey' ) # create parent table