mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
make migration more robust, fixes #1271
This commit is contained in:
parent
9de51c8b9e
commit
8f68b4f298
@ -11,7 +11,7 @@ INSERT INTO note_contents_mig (noteId, content, hash, dateModified, utcDateModif
|
|||||||
SELECT noteId,
|
SELECT noteId,
|
||||||
content,
|
content,
|
||||||
hash,
|
hash,
|
||||||
(SELECT dateModified FROM notes WHERE noteId = note_contents.noteId),
|
COALESCE((SELECT dateModified FROM notes WHERE noteId = note_contents.noteId), utcDateModified),
|
||||||
utcDateModified
|
utcDateModified
|
||||||
FROM note_contents;
|
FROM note_contents;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user