mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	
		
			
	
	
		
			6 lines
		
	
	
		
			252 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			6 lines
		
	
	
		
			252 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
|  | UPDATE notes SET title = 'Recovered protected note', isProtected = 0 WHERE noteId IN (
 | ||
|  |     SELECT noteId FROM notes JOIN note_contents USING(noteId)
 | ||
|  |     WHERE notes.isProtected = 1
 | ||
|  |       AND note_contents.isProtected = 0
 | ||
|  |       AND notes.isDeleted = 0
 | ||
|  | )
 |