mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
merge duplicate communities #348
This commit is contained in:
parent
973a0c3110
commit
c9c09329b7
1 changed files with 1 additions and 1 deletions
|
@ -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)})
|
||||
|
|
Loading…
Reference in a new issue