mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 17:31:55 +00:00
core: store extended contact and group preferences, for forward compatibility (#7506)
* core: store extended contact and group preferences, for forward compatibility * simiplify * fix * fix bot api types * query plans --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
1 parent
23136f1cd5
commit
3af6e2abfe
18 files changed
+334
-171
No files matched your search
@@ -0,0 +1,21 @@
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
module Simplex.Chat.Store.Postgres.Migrations.M20260923_preferences_json where
|
||||
|
||||
import Data.Text (Text)
|
||||
import Text.RawString.QQ (r)
|
||||
|
||||
m20260923_preferences_json :: Text
|
||||
m20260923_preferences_json =
|
||||
[r|
|
||||
ALTER TABLE contact_profiles ADD COLUMN preferences_json TEXT;
|
||||
ALTER TABLE group_profiles ADD COLUMN preferences_json TEXT;
|
||||
|]
|
||||
|
||||
down_m20260923_preferences_json :: Text
|
||||
down_m20260923_preferences_json =
|
||||
[r|
|
||||
ALTER TABLE group_profiles DROP COLUMN preferences_json;
|
||||
ALTER TABLE contact_profiles DROP COLUMN preferences_json;
|
||||
|]
|
||||
@@ -680,7 +680,8 @@ CREATE TABLE test_chat_schema.contact_profiles (
|
||||
contact_domain text,
|
||||
contact_domain_proof text,
|
||||
contact_domain_verified smallint,
|
||||
description text
|
||||
description text,
|
||||
preferences_json text
|
||||
);
|
||||
|
||||
|
||||
@@ -1042,7 +1043,8 @@ CREATE TABLE test_chat_schema.group_profiles (
|
||||
group_domain text,
|
||||
domain_web_page bigint,
|
||||
allow_embedding bigint,
|
||||
group_domain_proof text
|
||||
group_domain_proof text,
|
||||
preferences_json text
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user