diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 09:33:28 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-29 10:04:39 +0100 |
commit | 319d072e8eb7266cd8d33e0bb2fb5ebe76c487d1 (patch) | |
tree | 33735d94f0f928e80486f82bcc21fdf233b5b445 /server/models/user.js | |
parent | 67bf9b96bbcd92b069fe86d9223fe0f8b9c6e677 (diff) | |
download | PeerTube-319d072e8eb7266cd8d33e0bb2fb5ebe76c487d1.tar.gz PeerTube-319d072e8eb7266cd8d33e0bb2fb5ebe76c487d1.tar.zst PeerTube-319d072e8eb7266cd8d33e0bb2fb5ebe76c487d1.zip |
Server: Add postgresql indexes
Diffstat (limited to 'server/models/user.js')
-rw-r--r-- | server/models/user.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/user.js b/server/models/user.js index 944986a44..631cd96c9 100644 --- a/server/models/user.js +++ b/server/models/user.js | |||
@@ -38,6 +38,11 @@ module.exports = function (sequelize, DataTypes) { | |||
38 | } | 38 | } |
39 | }, | 39 | }, |
40 | { | 40 | { |
41 | indexes: [ | ||
42 | { | ||
43 | fields: [ 'username' ] | ||
44 | } | ||
45 | ], | ||
41 | classMethods: { | 46 | classMethods: { |
42 | associate, | 47 | associate, |
43 | 48 | ||