trilium/db/migrations/0117__fix_attributes_of_deleted_notes.sql
2018-11-18 10:20:06 +01:00

1 line
No EOL
99 B
SQL

UPDATE attributes SET isDeleted = 1 WHERE noteId IN (SELECT noteId FROM notes WHERE isDeleted = 1);