From 60afcf35dd60c40b5f70dd67de1c905cd0748706 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 12 Apr 2018 02:53:48 +0900 Subject: [PATCH] Add missing index --- src/models/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/user.ts b/src/models/user.ts index a2800a380..cdf9a564f 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -11,6 +11,7 @@ import config from '../config'; const User = db.get('users'); User.createIndex('username'); +User.createIndex('usernameLower'); User.createIndex('token'); User.createIndex('uri', { sparse: true, unique: true });