mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			221 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			221 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
UPDATE branches SET branchId = 'hidden' where branchId = (
 | 
						|
    SELECT branchId FROM branches
 | 
						|
    WHERE parentNoteId = 'root'
 | 
						|
      AND noteId = 'hidden'
 | 
						|
      AND isDeleted = 0
 | 
						|
    ORDER BY utcDateModified
 | 
						|
    LIMIT 1
 | 
						|
);
 |