mirror of
https://github.com/zadam/trilium.git
synced 2025-01-01 12:52:17 +08:00
added consitency check for null title or text
This commit is contained in:
parent
ec4b28f97c
commit
fcd11c341c
1 changed files with 10 additions and 0 deletions
|
@ -198,6 +198,16 @@ async function runAllChecks() {
|
|||
AND images.is_deleted = 1`,
|
||||
"Note image is not deleted while image is deleted for note_image_id", errorList);
|
||||
|
||||
await runCheck(`
|
||||
SELECT
|
||||
note_id
|
||||
FROM
|
||||
notes
|
||||
WHERE
|
||||
is_deleted = 0
|
||||
AND (note_title IS NULL OR note_text IS NULL)`,
|
||||
"Note has null title or text", errorList);
|
||||
|
||||
await runSyncRowChecks("notes", "note_id", errorList);
|
||||
await runSyncRowChecks("notes_history", "note_history_id", errorList);
|
||||
await runSyncRowChecks("notes_tree", "note_tree_id", errorList);
|
||||
|
|
Loading…
Reference in a new issue