mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			178 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			178 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
UPDATE entity_changes SET isSynced = COALESCE((
 | 
						|
    SELECT options.isSynced
 | 
						|
    FROM options
 | 
						|
    WHERE options.name = entity_changes.entityId
 | 
						|
), 0) WHERE entityName = 'options';
 |