mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-26 17:41:34 +08:00 
			
		
		
		
	
		
			
	
	
		
			8 lines
		
	
	
		
			535 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			8 lines
		
	
	
		
			535 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
|   | INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id)
 | ||
|  |   SELECT 'notes', note_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes;
 | ||
|  | 
 | ||
|  | INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id)
 | ||
|  |   SELECT 'notes_tree', note_tree_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes_tree;
 | ||
|  | 
 | ||
|  | INSERT OR IGNORE INTO sync (entity_name, entity_id, sync_date, source_id)
 | ||
|  |   SELECT 'notes_history', note_history_id, strftime('%Y-%m-%dT%H:%M:%S.000Z', 'now'), 'IMPORT' FROM notes_history;
 |