mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
core, ios: mark files to receive from NSE, receive marked files on chat start (#2218)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{-# LANGUAGE QuasiQuotes #-}
|
||||
|
||||
module Simplex.Chat.Migrations.M20230420_rcv_files_to_receive where
|
||||
|
||||
import Database.SQLite.Simple (Query)
|
||||
import Database.SQLite.Simple.QQ (sql)
|
||||
|
||||
m20230420_rcv_files_to_receive :: Query
|
||||
m20230420_rcv_files_to_receive =
|
||||
[sql|
|
||||
ALTER TABLE rcv_files ADD COLUMN to_receive INTEGER;
|
||||
|]
|
||||
|
||||
down_m20230420_rcv_files_to_receive :: Query
|
||||
down_m20230420_rcv_files_to_receive =
|
||||
[sql|
|
||||
ALTER TABLE rcv_files DROP COLUMN to_receive;
|
||||
|]
|
||||
@@ -229,7 +229,8 @@ CREATE TABLE rcv_files(
|
||||
file_descr_id INTEGER NULL
|
||||
REFERENCES xftp_file_descriptions ON DELETE SET NULL,
|
||||
agent_rcv_file_id BLOB NULL,
|
||||
agent_rcv_file_deleted INTEGER DEFAULT 0 CHECK(agent_rcv_file_deleted NOT NULL)
|
||||
agent_rcv_file_deleted INTEGER DEFAULT 0 CHECK(agent_rcv_file_deleted NOT NULL),
|
||||
to_receive INTEGER
|
||||
);
|
||||
CREATE TABLE snd_file_chunks(
|
||||
file_id INTEGER NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user