remove comments

This commit is contained in:
Evgeny Poberezkin
2026-06-28 20:29:27 +01:00
parent cc0e56d972
commit 9d8bd54bcf
2 changed files with 0 additions and 36 deletions
@@ -6,22 +6,6 @@ module Simplex.Chat.Store.Postgres.Migrations.M20260603_simplex_name where
import Data.Text (Text)
import Text.RawString.QQ (r)
-- The entity name is stored on the profile as the canonical strEncode form (TEXT):
-- contact_profiles.simplex_name for contacts and group_profiles.simplex_name for
-- channels (copied from group_profiles.group_domain, added in M20260515, which is
-- then dropped).
--
-- contact_profiles.simplex_name_verification and groups.simplex_name_verification
-- are the local 3-state verification status (NULL = not attempted, 0 = failed,
-- 1 = verified), reset to NULL when the claimed name changes.
--
-- contact_profiles.simplex_name_proof / group_profiles.simplex_name_proof hold the
-- peer's name NameClaimProof (JSON).
-- user_contact_links.link_priv_sig_key is the contact-address owner signing key
-- (captured at short-link creation) used to sign the user's own name proofs.
--
-- server_operators.smp_role_names enables name resolution for an operator's SMP
-- servers (set for the simplex operator).
m20260603_simplex_name :: Text
m20260603_simplex_name =
[r|
@@ -30,7 +14,6 @@ ALTER TABLE contact_profiles ADD COLUMN simplex_name_verification SMALLINT;
ALTER TABLE contact_profiles ADD COLUMN simplex_name_proof TEXT;
ALTER TABLE groups ADD COLUMN simplex_name_verification SMALLINT;
ALTER TABLE group_profiles ADD COLUMN simplex_name TEXT;
UPDATE group_profiles SET simplex_name = group_domain;
ALTER TABLE group_profiles DROP COLUMN group_domain;
ALTER TABLE group_profiles ADD COLUMN simplex_name_proof TEXT;
ALTER TABLE user_contact_links ADD COLUMN link_priv_sig_key BYTEA;
@@ -47,7 +30,6 @@ ALTER TABLE server_operators DROP COLUMN smp_role_names;
ALTER TABLE user_contact_links DROP COLUMN link_priv_sig_key;
ALTER TABLE group_profiles DROP COLUMN simplex_name_proof;
ALTER TABLE group_profiles ADD COLUMN group_domain TEXT;
UPDATE group_profiles SET group_domain = simplex_name;
ALTER TABLE group_profiles DROP COLUMN simplex_name;
ALTER TABLE groups DROP COLUMN simplex_name_verification;
ALTER TABLE contact_profiles DROP COLUMN simplex_name_proof;
@@ -5,22 +5,6 @@ module Simplex.Chat.Store.SQLite.Migrations.M20260603_simplex_name where
import Database.SQLite.Simple (Query)
import Database.SQLite.Simple.QQ (sql)
-- The entity name is stored on the profile as the canonical strEncode form (TEXT):
-- contact_profiles.simplex_name for contacts and group_profiles.simplex_name for
-- channels (copied from group_profiles.group_domain, added in M20260515, which is
-- then dropped).
--
-- contact_profiles.simplex_name_verification and groups.simplex_name_verification
-- are the local 3-state verification status (NULL = not attempted, 0 = failed,
-- 1 = verified), reset to NULL when the claimed name changes.
--
-- contact_profiles.simplex_name_proof / group_profiles.simplex_name_proof hold the
-- peer's name NameClaimProof (JSON).
-- user_contact_links.link_priv_sig_key is the contact-address owner signing key
-- (captured at short-link creation) used to sign the user's own name proofs.
--
-- server_operators.smp_role_names enables name resolution for an operator's SMP
-- servers (set for the simplex operator).
m20260603_simplex_name :: Query
m20260603_simplex_name =
[sql|
@@ -29,7 +13,6 @@ ALTER TABLE contact_profiles ADD COLUMN simplex_name_verification INTEGER;
ALTER TABLE contact_profiles ADD COLUMN simplex_name_proof TEXT;
ALTER TABLE groups ADD COLUMN simplex_name_verification INTEGER;
ALTER TABLE group_profiles ADD COLUMN simplex_name TEXT;
UPDATE group_profiles SET simplex_name = group_domain;
ALTER TABLE group_profiles DROP COLUMN group_domain;
ALTER TABLE group_profiles ADD COLUMN simplex_name_proof TEXT;
ALTER TABLE user_contact_links ADD COLUMN link_priv_sig_key BLOB;
@@ -46,7 +29,6 @@ ALTER TABLE server_operators DROP COLUMN smp_role_names;
ALTER TABLE user_contact_links DROP COLUMN link_priv_sig_key;
ALTER TABLE group_profiles DROP COLUMN simplex_name_proof;
ALTER TABLE group_profiles ADD COLUMN group_domain TEXT;
UPDATE group_profiles SET group_domain = simplex_name;
ALTER TABLE group_profiles DROP COLUMN simplex_name;
ALTER TABLE groups DROP COLUMN simplex_name_verification;
ALTER TABLE contact_profiles DROP COLUMN simplex_name_proof;