mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-03 09:19:03 +09:00
Add missing index
This commit is contained in:
parent
c3f2cea0e6
commit
c32385b616
@ -11,6 +11,7 @@ import config from '../config';
|
|||||||
const User = db.get<IUser>('users');
|
const User = db.get<IUser>('users');
|
||||||
|
|
||||||
User.createIndex('username');
|
User.createIndex('username');
|
||||||
|
User.createIndex('usernameLower');
|
||||||
User.createIndex('token');
|
User.createIndex('token');
|
||||||
User.createIndex('uri', { sparse: true, unique: true });
|
User.createIndex('uri', { sparse: true, unique: true });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user