mirror of
https://github.com/zadam/trilium.git
synced 2024-12-29 11:24:45 +08:00
fix migration to handle duplicates in entity_changes, #2534
This commit is contained in:
parent
75b65c396e
commit
9df521109b
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
-- delete duplicates https://github.com/zadam/trilium/issues/2534
|
||||
DELETE FROM entity_changes WHERE id IN (
|
||||
DELETE FROM entity_changes WHERE isErased = 0 AND id IN (
|
||||
SELECT id FROM entity_changes ec
|
||||
WHERE (
|
||||
SELECT COUNT(*) FROM entity_changes
|
||||
|
|
Loading…
Reference in a new issue