Cache files copied to Matrix
This commit is contained in:
18
database/upgrades/11-cache-reuploaded-files.sql
Normal file
18
database/upgrades/11-cache-reuploaded-files.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- v11: Cache files copied from Discord to Matrix
|
||||
CREATE TABLE discord_file (
|
||||
url TEXT,
|
||||
encrypted BOOLEAN,
|
||||
|
||||
id TEXT,
|
||||
mxc TEXT NOT NULL,
|
||||
|
||||
size BIGINT NOT NULL,
|
||||
width INTEGER,
|
||||
height INTEGER,
|
||||
|
||||
decryption_info jsonb,
|
||||
|
||||
timestamp BIGINT NOT NULL,
|
||||
|
||||
PRIMARY KEY (url, encrypted)
|
||||
);
|
||||
Reference in New Issue
Block a user