mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-25 22:54:29 +00:00
core: save CIContent tag in chat_items table (#3555)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
module Simplex.Chat.Migrations.M20231214_item_content_tag where
|
||||
|
||||
import Database.SQLite.Simple (Query)
|
||||
import Database.SQLite.Simple.QQ (sql)
|
||||
|
||||
m20231214_item_content_tag :: Query
|
||||
m20231214_item_content_tag =
|
||||
[sql|
|
||||
ALTER TABLE chat_items ADD COLUMN item_content_tag TEXT;
|
||||
|]
|
||||
|
||||
down_m20231214_item_content_tag :: Query
|
||||
down_m20231214_item_content_tag =
|
||||
[sql|
|
||||
ALTER TABLE chat_items DROP COLUMN item_content_tag;
|
||||
|]
|
||||
@@ -379,7 +379,8 @@ CREATE TABLE chat_items(
|
||||
item_live INTEGER,
|
||||
item_deleted_by_group_member_id INTEGER REFERENCES group_members ON DELETE SET NULL,
|
||||
item_deleted_ts TEXT,
|
||||
forwarded_by_group_member_id INTEGER REFERENCES group_members ON DELETE SET NULL
|
||||
forwarded_by_group_member_id INTEGER REFERENCES group_members ON DELETE SET NULL,
|
||||
item_content_tag TEXT
|
||||
);
|
||||
CREATE TABLE chat_item_messages(
|
||||
chat_item_id INTEGER NOT NULL REFERENCES chat_items ON DELETE CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user