mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			3 lines
		
	
	
		
			219 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			219 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| DELETE FROM branches WHERE noteId = '_share' AND parentNoteId != 'root' AND parentNoteId != '_hidden'; -- delete all other branches of _share if any
 | |
| UPDATE branches SET parentNoteId = '_hidden' WHERE noteId = '_share';
 | 
