diff --git a/posthog/migrations/0525_project_name_sync.py b/posthog/migrations/0525_project_name_sync.py index d225d213d8bd39..1d648315d9337d 100644 --- a/posthog/migrations/0525_project_name_sync.py +++ b/posthog/migrations/0525_project_name_sync.py @@ -12,7 +12,7 @@ class Migration(migrations.Migration): UPDATE posthog_project AS proj SET name = team.name FROM posthog_team AS team - WHERE proj.id = team.project_id AND proj.name != team.name""", + WHERE proj.id = team.id AND proj.name != team.name""", reverse_sql=migrations.RunSQL.noop, elidable=True, ),