trilium/db/migrations/0181__fix_entityChanges_isSynced.sql
2021-02-11 22:50:32 +01:00

5 lines
165 B
SQL

UPDATE entity_changes SET isSynced = (
SELECT options.isSynced
FROM options
WHERE options.name = entity_changes.entityId
) WHERE entityName = 'options';