soft-deleting note will delete its content and all the revisions content, fixes #132

This commit is contained in:
azivner
2018-07-26 09:08:51 +02:00
parent 5b98c1c0f3
commit 7e4d70259f
3 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
UPDATE notes SET content = '' WHERE isDeleted = 1;
UPDATE note_revisions SET content = '' WHERE (SELECT isDeleted FROM notes WHERE noteId = note_revisions.noteId) = 1;