mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
renamed attachment's parentId to more fitting ownerId
This commit is contained in:
@@ -114,7 +114,7 @@ CREATE TABLE IF NOT EXISTS "blobs" (
|
||||
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,
|
||||
@@ -126,5 +126,5 @@ CREATE TABLE IF NOT EXISTS "attachments"
|
||||
utcDateScheduledForErasureSince TEXT DEFAULT NULL,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user