mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
correct constraint name
This commit is contained in:
@@ -51,7 +51,7 @@ def migrate_event_data(apps, schema_editor):
|
|||||||
# TODO: do more generic search for pkey constraints
|
# TODO: do more generic search for pkey constraints
|
||||||
# instead of hardcoding this one that applies to main_jobevent
|
# instead of hardcoding this one that applies to main_jobevent
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
f'ALTER TABLE tmp_{tblname} DROP CONSTRAINT {tblname}_pkey1'
|
f'ALTER TABLE tmp_{tblname} DROP CONSTRAINT tmp_{tblname}_pkey'
|
||||||
)
|
)
|
||||||
|
|
||||||
# create parent table
|
# create parent table
|
||||||
|
|||||||
Reference in New Issue
Block a user