mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
note image detail
This commit is contained in:
@@ -182,27 +182,6 @@ async function runAllChecks() {
|
||||
COUNT(*) > 1`,
|
||||
"Duplicate undeleted parent note <-> note relationship - parent note ID > note ID", errorList);
|
||||
|
||||
await runCheck(`
|
||||
SELECT
|
||||
images.imageId
|
||||
FROM
|
||||
images
|
||||
LEFT JOIN note_images ON note_images.imageId = images.imageId
|
||||
WHERE
|
||||
note_images.noteImageId IS NULL`,
|
||||
"Image with no note relation", errorList);
|
||||
|
||||
await runCheck(`
|
||||
SELECT
|
||||
note_images.noteImageId
|
||||
FROM
|
||||
note_images
|
||||
JOIN images USING(imageId)
|
||||
WHERE
|
||||
note_images.isDeleted = 0
|
||||
AND images.isDeleted = 1`,
|
||||
"Note image is not deleted while image is deleted for noteImageId", errorList);
|
||||
|
||||
await runCheck(`
|
||||
SELECT
|
||||
noteId
|
||||
@@ -232,8 +211,6 @@ async function runAllChecks() {
|
||||
await runSyncRowChecks("note_revisions", "noteRevisionId", errorList);
|
||||
await runSyncRowChecks("branches", "branchId", errorList);
|
||||
await runSyncRowChecks("recent_notes", "branchId", errorList);
|
||||
await runSyncRowChecks("images", "imageId", errorList);
|
||||
await runSyncRowChecks("note_images", "noteImageId", errorList);
|
||||
await runSyncRowChecks("attributes", "attributeId", errorList);
|
||||
await runSyncRowChecks("api_tokens", "apiTokenId", errorList);
|
||||
await runSyncRowChecks("options", "name", errorList);
|
||||
|
||||
Reference in New Issue
Block a user