status-go/protocol/migrations/sqlite/1660226788_create_chat_identity_social_links.up.sql
Patryk Osmaczko 4143de3816 feat: add social links
iterates: #2782
2022-08-16 14:29:00 +02:00

11 lines
318 B
SQL

CREATE TABLE IF NOT EXISTS chat_identity_social_links (
chat_id VARCHAR NOT NULL,
link_text TEXT,
link_url TEXT,
UNIQUE(chat_id, link_text) ON CONFLICT REPLACE
);
CREATE TABLE IF NOT EXISTS chat_identity_last_received (
chat_id VARCHAR NOT NULL PRIMARY KEY ON CONFLICT REPLACE,
clock_value INT NOT NULL
);