diff --git a/src/Simplex/Chat/Store/Postgres/Migrations/M20260222_chat_relays.hs b/src/Simplex/Chat/Store/Postgres/Migrations/M20260222_chat_relays.hs index 9c78fb595c..a504e7f1d8 100644 --- a/src/Simplex/Chat/Store/Postgres/Migrations/M20260222_chat_relays.hs +++ b/src/Simplex/Chat/Store/Postgres/Migrations/M20260222_chat_relays.hs @@ -75,6 +75,8 @@ down_m20260222_chat_relays :: Text down_m20260222_chat_relays = T.pack [r| +UPDATE group_members SET member_role = 'observer' WHERE member_role = 'relay'; + ALTER TABLE users DROP COLUMN is_user_chat_relay; ALTER TABLE groups diff --git a/src/Simplex/Chat/Store/SQLite/Migrations/M20260222_chat_relays.hs b/src/Simplex/Chat/Store/SQLite/Migrations/M20260222_chat_relays.hs index cc3706081a..766921858f 100644 --- a/src/Simplex/Chat/Store/SQLite/Migrations/M20260222_chat_relays.hs +++ b/src/Simplex/Chat/Store/SQLite/Migrations/M20260222_chat_relays.hs @@ -86,6 +86,8 @@ ALTER TABLE chat_items ADD COLUMN msg_signed TEXT; down_m20260222_chat_relays :: Query down_m20260222_chat_relays = [sql| +UPDATE group_members SET member_role = 'observer' WHERE member_role = 'relay'; + ALTER TABLE users DROP COLUMN is_user_chat_relay; ALTER TABLE groups DROP COLUMN use_relays;