mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			1 line
		
	
	
		
			130 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			1 line
		
	
	
		
			130 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| UPDATE attributes SET isDeleted = 1 WHERE type = 'relation' AND value NOT IN (SELECT noteId FROM notes WHERE notes.isDeleted = 0); |