trilium/db/migrations/0157__fix_contentLength.sql

1 line
No EOL
146 B
SQL

UPDATE notes SET contentLength = COALESCE((SELECT COALESCE(LENGTH(content), 0) FROM note_contents WHERE note_contents.noteId = notes.noteId), -1);