Notes/db/migrations/0181__fix_entityChanges_isSynced.sql

6 lines
178 B
MySQL
Raw Normal View History

2021-02-12 23:52:16 +01:00
UPDATE entity_changes SET isSynced = COALESCE((
2021-02-11 22:50:32 +01:00
SELECT options.isSynced
FROM options
WHERE options.name = entity_changes.entityId
2021-02-12 23:52:16 +01:00
), 0) WHERE entityName = 'options';