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/tag.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/tag.js')
-rw-r--r-- | server/models/tag.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/models/tag.js b/server/models/tag.js index d6c2d3bb1..27eecdc84 100644 --- a/server/models/tag.js +++ b/server/models/tag.js | |||
@@ -11,6 +11,13 @@ module.exports = function (sequelize, DataTypes) { | |||
11 | } | 11 | } |
12 | }, | 12 | }, |
13 | { | 13 | { |
14 | timestamps: false, | ||
15 | indexes: [ | ||
16 | { | ||
17 | fields: [ 'name' ], | ||
18 | unique: true | ||
19 | } | ||
20 | ], | ||
14 | classMethods: { | 21 | classMethods: { |
15 | associate | 22 | associate |
16 | } | 23 | } |