db migration fix

This commit is contained in:
zadam 2021-02-12 23:52:16 +01:00
parent d45a59aa4e
commit 5e6d2c8336

View file

@ -1,5 +1,5 @@
UPDATE entity_changes SET isSynced = (
UPDATE entity_changes SET isSynced = COALESCE((
SELECT options.isSynced
FROM options
WHERE options.name = entity_changes.entityId
) WHERE entityName = 'options';
), 0) WHERE entityName = 'options';