aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/author.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/author.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/author.js')
-rw-r--r--server/models/author.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/models/author.js b/server/models/author.js
index 7d15fb6ec..f036193c8 100644
--- a/server/models/author.js
+++ b/server/models/author.js
@@ -25,7 +25,12 @@ module.exports = function (sequelize, DataTypes) {
25 fields: [ 'podId' ] 25 fields: [ 'podId' ]
26 }, 26 },
27 { 27 {
28 fields: [ 'userId' ] 28 fields: [ 'userId' ],
29 unique: true
30 },
31 {
32 fields: [ 'name', 'podId' ],
33 unique: true
29 } 34 }
30 ], 35 ],
31 classMethods: { 36 classMethods: {