mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
	
	
		
			7 lines
		
	
	
		
			205 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			7 lines
		
	
	
		
			205 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
| 
								 | 
							
								ALTER TABLE notes_history ADD COLUMN note_history_id TEXT;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								UPDATE notes_history SET note_history_id = id;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								CREATE UNIQUE INDEX `IDX_note_history_note_history_id` ON `notes_history` (
							 | 
						||
| 
								 | 
							
									`note_history_id`
							 | 
						||
| 
								 | 
							
								);
							 |