mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	
		
			
	
	
		
			6 lines
		
	
	
		
			164 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			6 lines
		
	
	
		
			164 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
| 
								 | 
							
								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'
							 |