renamed attachment's parentId to more fitting ownerId

This commit is contained in:
zadam
2023-07-14 17:01:56 +02:00
parent ca41806bc2
commit d475346a09
25 changed files with 63 additions and 63 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS "attachments"
(
attachmentId TEXT not null primary key,
parentId TEXT not null,
ownerId TEXT not null,
role TEXT not null,
mime TEXT not null,
title TEXT not null,
@@ -14,8 +14,8 @@ CREATE TABLE IF NOT EXISTS "attachments"
isDeleted INT not null,
deleteId TEXT DEFAULT NULL);
CREATE INDEX IDX_attachments_parentId_role
on attachments (parentId, role);
CREATE INDEX IDX_attachments_ownerId_role
on attachments (ownerId, role);
CREATE INDEX IDX_attachments_utcDateScheduledForErasureSince
on attachments (utcDateScheduledForErasureSince);