Add unique index on video comment url
This commit is contained in:
parent
ce97fe366e
commit
0776d83f2c
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,10 @@ enum ScopeNames {
|
|||
},
|
||||
{
|
||||
fields: [ 'videoId', 'originCommentId' ]
|
||||
},
|
||||
{
|
||||
fields: [ 'url' ],
|
||||
unique: true
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue