From 973a0c3110b04bf5b7cd9aaa38d1df51b41ffbfb Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:00:36 +1300 Subject: [PATCH] merge duplicate communities #348 --- .../versions/d2bd6281a8d3_unique_community_ap_profile_id.py | 1 + 1 file changed, 1 insertion(+) diff --git a/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py b/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py index 7e507eda..aeecb236 100644 --- a/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py +++ b/migrations/versions/d2bd6281a8d3_unique_community_ap_profile_id.py @@ -57,6 +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)}) # Delete the duplicate users conn.execute(text('DELETE FROM "community" WHERE id IN :old_ids'), {"old_ids": tuple(old_ids)})