diff --git a/db/migrations/0181__fix_entityChanges_isSynced.sql b/db/migrations/0181__fix_entityChanges_isSynced.sql index 22a933b03..cb80a982f 100644 --- a/db/migrations/0181__fix_entityChanges_isSynced.sql +++ b/db/migrations/0181__fix_entityChanges_isSynced.sql @@ -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';