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/author.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/author.js')
-rw-r--r-- | server/models/author.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/models/author.js b/server/models/author.js index e0ac868ea..8f5b598c8 100644 --- a/server/models/author.js +++ b/server/models/author.js | |||
@@ -17,6 +17,14 @@ module.exports = function (sequelize, DataTypes) { | |||
17 | } | 17 | } |
18 | }, | 18 | }, |
19 | { | 19 | { |
20 | indexes: [ | ||
21 | { | ||
22 | fields: [ 'name' ] | ||
23 | }, | ||
24 | { | ||
25 | fields: [ 'podId' ] | ||
26 | } | ||
27 | ], | ||
20 | classMethods: { | 28 | classMethods: { |
21 | associate | 29 | associate |
22 | } | 30 | } |