mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			673 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			673 B
		
	
	
	
		
			MySQL
		
	
	
	
	
	
| 
								 | 
							
								CREATE TABLE IF NOT EXISTS "note_contents_mig" (
							 | 
						||
| 
								 | 
							
								                                                   `noteId`	TEXT NOT NULL,
							 | 
						||
| 
								 | 
							
								                                                   `content`	TEXT NULL DEFAULT NULL,
							 | 
						||
| 
								 | 
							
								                                                   `hash` TEXT DEFAULT "" NOT NULL,
							 | 
						||
| 
								 | 
							
								                                                   `utcDateModified` TEXT NOT NULL,
							 | 
						||
| 
								 | 
							
								                                                   PRIMARY KEY(`noteId`)
							 | 
						||
| 
								 | 
							
								);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								INSERT INTO note_contents_mig (noteId, content, hash, utcDateModified)
							 | 
						||
| 
								 | 
							
								SELECT noteId, content, hash, utcDateModified FROM note_contents;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								DROP TABLE note_contents;
							 | 
						||
| 
								 | 
							
								ALTER TABLE note_contents_mig RENAME TO note_contents;
							 |