mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-30 04:01:31 +08:00 
			
		
		
		
	fix anonymization according to latest schema
This commit is contained in:
		
							parent
							
								
									5b30291601
								
							
						
					
					
						commit
						01370a5968
					
				
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "trilium", | ||||
|   "version": "0.37.5", | ||||
|   "version": "0.37.6", | ||||
|   "lockfileVersion": 1, | ||||
|   "requires": true, | ||||
|   "dependencies": { | ||||
|  | ||||
| @ -18,7 +18,10 @@ async function anonymize() { | ||||
| 
 | ||||
|     await db.run("UPDATE notes SET title = 'title'"); | ||||
|     await db.run("UPDATE note_contents SET content = 'text'"); | ||||
|     await db.run("UPDATE note_revisions SET title = 'title', content = 'text'"); | ||||
|     await db.run("UPDATE note_revisions SET title = 'title'"); | ||||
|     await db.run("UPDATE note_revision_contents SET content = 'title'"); | ||||
|     await db.run("UPDATE attributes SET name = 'name', value = 'value' WHERE type = 'label'"); | ||||
|     await db.run("UPDATE attributes SET name = 'name' WHERE type = 'relation'"); | ||||
|     await db.run("UPDATE branches SET prefix = 'prefix' WHERE prefix IS NOT NULL"); | ||||
|     await db.run(`UPDATE options SET value = 'anonymized' WHERE name IN 
 | ||||
|                     ('documentSecret', 'encryptedDataKey', 'passwordVerificationHash',  | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam