mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
import of initial demo document sets sync.isSynced incorrectly to always 0, #1163
This commit is contained in:
4
db/migrations/0159__fix_isSynced_in_sync_rows.sql
Normal file
4
db/migrations/0159__fix_isSynced_in_sync_rows.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
UPDATE sync SET isSynced = 1 WHERE entityName != 'options' OR (
|
||||
entityName = 'options'
|
||||
AND 1 = (SELECT isSynced FROM options WHERE name = sync.entityId)
|
||||
)
|
||||
Reference in New Issue
Block a user