mirror of https://github.com/Chocobozzz/PeerTube
Add unique index on video comment url
parent
ce97fe366e
commit
0776d83f2c
|
@ -104,6 +104,10 @@ enum ScopeNames {
|
|||
},
|
||||
{
|
||||
fields: [ 'videoId', 'originCommentId' ]
|
||||
},
|
||||
{
|
||||
fields: [ 'url' ],
|
||||
unique: true
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue