From a1d1e70e43af10b27e07a91c8c39dc77e6ad3051 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Mon, 8 Mar 2021 15:01:24 -0800 Subject: [PATCH] correct constraint name --- awx/main/migrations/0130_event_partitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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