From c9c09329b71a9288eaf2af8b9930dd0c29cc7405 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:01:21 +1300 Subject: [PATCH] merge duplicate communities #348 --- .../versions/d2bd6281a8d3_unique_community_ap_profile_id.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py b/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py index aeecb236..f882a704 100644 --- a/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py +++ b/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py @@ -57,7 +57,7 @@ def upgrade(): conn.execute(text('DELETE FROM "community_member" WHERE community_id IN :old_ids'), {"old_ids": tuple(old_ids)}) conn.execute(text('DELETE FROM "community_ban" WHERE community_id IN :old_ids'), {"old_ids": tuple(old_ids)}) conn.execute(text('DELETE FROM "community_join_request" WHERE community_id IN :old_ids'), {"old_ids": tuple(old_ids)}) - conn.execute(text('DELETE FROM "community_langage" WHERE community_id IN :old_ids'), {"old_ids": tuple(old_ids)}) + conn.execute(text('DELETE FROM "community_language" WHERE community_id IN :old_ids'), {"old_ids": tuple(old_ids)}) # Delete the duplicate users conn.execute(text('DELETE FROM "community" WHERE id IN :old_ids'), {"old_ids": tuple(old_ids)})