aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/pod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-16 19:24:34 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-16 19:24:34 +0100
commit5d67f289df4a68e35ad7e0af3c601c7db0dc7586 (patch)
treee29d74e65161cc7a0fd88a48da5579e790c5bd62 /server/models/pod.js
parent4793c343fd3cde3c6282ed0fb38e039b4276de0e (diff)
downloadPeerTube-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.js3
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' ]