mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
blob WIP
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const sql = require("../../src/services/sql.js");
|
||||
const sql = require("../../src/services/sql");
|
||||
module.exports = () => {
|
||||
const sql = require("../../src/services/sql");
|
||||
const utils = require("../../src/services/utils");
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
CREATE TABLE IF NOT EXISTS "note_attachments"
|
||||
(
|
||||
noteAttachmentId TEXT not null primary key,
|
||||
noteId TEXT not null,
|
||||
name TEXT not null,
|
||||
parentId TEXT not null,
|
||||
role TEXT not null,
|
||||
mime TEXT not null,
|
||||
title TEXT not null,
|
||||
isProtected INT not null DEFAULT 0,
|
||||
blobId TEXT not null,
|
||||
utcDateModified TEXT not null,
|
||||
isDeleted INT not null,
|
||||
`deleteId` TEXT DEFAULT NULL);
|
||||
deleteId TEXT DEFAULT NULL);
|
||||
|
||||
CREATE INDEX IDX_note_attachments_name
|
||||
on note_attachments (name);
|
||||
CREATE UNIQUE INDEX IDX_note_attachments_noteId_name
|
||||
on note_attachments (noteId, name);
|
||||
CREATE UNIQUE INDEX IDX_note_attachments_parentId_role
|
||||
on note_attachments (parentId, role);
|
||||
|
||||
Reference in New Issue
Block a user