mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-27 01:51:34 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			164 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			164 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| UPDATE
 | |
|     notes_tree
 | |
| SET
 | |
|     note_pid = (SELECT parent.note_id FROM notes_tree parent WHERE notes_tree.note_pid = parent.note_tree_id)
 | |
| WHERE
 | |
|     note_pid != 'root' | 
