trilium/db/migrations/0181__fix_entityChanges_isSynced.sql

6 lines
178 B
MySQL
Raw Normal View History

2021-02-13 06:52:16 +08:00
UPDATE entity_changes SET isSynced = COALESCE((
2021-02-12 05:50:32 +08:00
SELECT options.isSynced
FROM options
WHERE options.name = entity_changes.entityId
2021-02-13 06:52:16 +08:00
), 0) WHERE entityName = 'options';