NoteのuserIdに対してインデックスを張るように
This commit is contained in:
		
							parent
							
								
									9f4624283d
								
							
						
					
					
						commit
						06461bb9ee
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -15,9 +15,8 @@ import Notification, { deleteNotification } from './notification';
 | 
				
			||||||
import Following from './following';
 | 
					import Following from './following';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Note = db.get<INote>('notes');
 | 
					const Note = db.get<INote>('notes');
 | 
				
			||||||
 | 
					 | 
				
			||||||
Note.createIndex('uri', { sparse: true, unique: true });
 | 
					Note.createIndex('uri', { sparse: true, unique: true });
 | 
				
			||||||
 | 
					Note.createIndex('userId');
 | 
				
			||||||
export default Note;
 | 
					export default Note;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function isValidText(text: string): boolean {
 | 
					export function isValidText(text: string): boolean {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue