mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix migration to handle duplicates in entity_changes, #2534
This commit is contained in:
		
							parent
							
								
									75b65c396e
								
							
						
					
					
						commit
						9df521109b
					
				@ -1,5 +1,5 @@
 | 
				
			|||||||
-- delete duplicates https://github.com/zadam/trilium/issues/2534
 | 
					-- delete duplicates https://github.com/zadam/trilium/issues/2534
 | 
				
			||||||
DELETE FROM entity_changes WHERE id IN (
 | 
					DELETE FROM entity_changes WHERE isErased = 0 AND id IN (
 | 
				
			||||||
    SELECT id FROM entity_changes ec
 | 
					    SELECT id FROM entity_changes ec
 | 
				
			||||||
    WHERE (
 | 
					    WHERE (
 | 
				
			||||||
              SELECT COUNT(*) FROM entity_changes
 | 
					              SELECT COUNT(*) FROM entity_changes
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user