core: add protocol field to files table (#2089)

This commit is contained in:
spaced4ndy
2023-03-28 14:38:36 +04:00
committed by GitHub
parent f4b349162f
commit dfec1cbb02
4 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -200,7 +200,8 @@ CREATE TABLE files(
file_inline TEXT,
agent_snd_file_id BLOB NULL,
private_snd_file_descr TEXT NULL,
agent_snd_file_deleted INTEGER DEFAULT 0 CHECK(agent_snd_file_deleted NOT NULL)
agent_snd_file_deleted INTEGER DEFAULT 0 CHECK(agent_snd_file_deleted NOT NULL),
protocol TEXT NOT NULL DEFAULT 'smp'
);
CREATE TABLE snd_files(
file_id INTEGER NOT NULL REFERENCES files ON DELETE CASCADE,