diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-16 19:24:34 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-16 19:24:34 +0100 |
commit | 5d67f289df4a68e35ad7e0af3c601c7db0dc7586 (patch) | |
tree | e29d74e65161cc7a0fd88a48da5579e790c5bd62 /server/models/pod.js | |
parent | 4793c343fd3cde3c6282ed0fb38e039b4276de0e (diff) | |
download | PeerTube-5d67f289df4a68e35ad7e0af3c601c7db0dc7586.tar.gz PeerTube-5d67f289df4a68e35ad7e0af3c601c7db0dc7586.tar.zst PeerTube-5d67f289df4a68e35ad7e0af3c601c7db0dc7586.zip |
Server: add unique to unique indexes
Diffstat (limited to 'server/models/pod.js')
-rw-r--r-- | server/models/pod.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/pod.js b/server/models/pod.js index 6ae4b0999..575ebbc61 100644 --- a/server/models/pod.js +++ b/server/models/pod.js | |||
@@ -41,7 +41,8 @@ module.exports = function (sequelize, DataTypes) { | |||
41 | { | 41 | { |
42 | indexes: [ | 42 | indexes: [ |
43 | { | 43 | { |
44 | fields: [ 'host' ] | 44 | fields: [ 'host' ], |
45 | unique: true | ||
45 | }, | 46 | }, |
46 | { | 47 | { |
47 | fields: [ 'score' ] | 48 | fields: [ 'score' ] |