trilium/db/migrations/0117__fix_attributes_of_deleted_notes.sql

1 line
99 B
MySQL
Raw Normal View History

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