mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-24 08:22:55 +00:00
core: fix races on member removal / delivery of their messages (#7010)
This commit is contained in:
1 parent
f3abb7aa76
commit
037c05cd29
13 files changed
+173
-17
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
module Simplex.Chat.Store.Postgres.Migrations.M20260525_member_removed_at where
|
||||
|
||||
import Data.Text (Text)
|
||||
import Text.RawString.QQ (r)
|
||||
|
||||
m20260525_member_removed_at :: Text
|
||||
m20260525_member_removed_at =
|
||||
[r|
|
||||
ALTER TABLE group_members ADD COLUMN removed_at TIMESTAMPTZ;
|
||||
|]
|
||||
|
||||
down_m20260525_member_removed_at :: Text
|
||||
down_m20260525_member_removed_at =
|
||||
[r|
|
||||
ALTER TABLE group_members DROP COLUMN removed_at;
|
||||
|]
|
||||
@@ -818,7 +818,8 @@ CREATE TABLE test_chat_schema.group_members (
|
||||
index_in_group bigint DEFAULT 0 NOT NULL,
|
||||
member_relations_vector bytea,
|
||||
relay_link bytea,
|
||||
member_pub_key bytea
|
||||
member_pub_key bytea,
|
||||
removed_at timestamp with time zone
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user