uploading image to attachment

This commit is contained in:
zadam
2023-03-16 18:34:39 +01:00
parent 9cd5bdeb53
commit 1fdb23746a
8 changed files with 90 additions and 26 deletions

View File

@@ -112,9 +112,10 @@ CREATE TABLE IF NOT EXISTS "attachments"
mime TEXT not null,
title TEXT not null,
isProtected INT not null DEFAULT 0,
blobId TEXT not null,
blobId TEXT DEFAULT null,
utcDateScheduledForDeletionSince TEXT DEFAULT NULL,
utcDateModified TEXT not null,
isDeleted INT not null,
deleteId TEXT DEFAULT NULL);
CREATE UNIQUE INDEX IDX_attachments_parentId_role
CREATE INDEX IDX_attachments_parentId_role
on attachments (parentId, role);