mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-29 16:59:21 -05:00
renamed attachment's parentId to more fitting ownerId
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user