mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	fix migration to preserve IDs in entity_changes
This commit is contained in:
		
							parent
							
								
									f2732bcab7
								
							
						
					
					
						commit
						1995b54770
					
				| @ -20,8 +20,8 @@ CREATE TABLE IF NOT EXISTS "mig_entity_changes" ( | |||||||
|                                                 `utcDateChanged` TEXT NOT NULL |                                                 `utcDateChanged` TEXT NOT NULL | ||||||
| ); | ); | ||||||
| 
 | 
 | ||||||
| INSERT INTO mig_entity_changes (entityName, entityId, hash, isErased, changeId, sourceId, isSynced, utcDateChanged) | INSERT INTO mig_entity_changes (id, entityName, entityId, hash, isErased, changeId, sourceId, isSynced, utcDateChanged) | ||||||
|     SELECT entityName, entityId, hash, isErased, '', sourceId, isSynced, utcDateChanged FROM entity_changes; |     SELECT id, entityName, entityId, hash, isErased, '', sourceId, isSynced, utcDateChanged FROM entity_changes; | ||||||
| 
 | 
 | ||||||
| DROP TABLE  entity_changes; | DROP TABLE  entity_changes; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam