mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	
		
			
	
	
		
			1 line
		
	
	
		
			130 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			1 line
		
	
	
		
			130 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
| 
								 | 
							
								UPDATE attributes SET isDeleted = 1 WHERE type = 'relation' AND value NOT IN (SELECT noteId FROM notes WHERE notes.isDeleted = 0);
							 |