This commit is contained in:
syuilo 2018-06-10 08:15:05 +09:00
parent b29ff0e94b
commit 951b2346ab

View File

@ -9,7 +9,7 @@ import User from './user';
import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumbnail';
const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
DriveFile.createIndex('md5');
DriveFile.createIndex('md5', { sparse: true });
DriveFile.createIndex('metadata.uri', { sparse: true, unique: true });
export default DriveFile;