Add unique index on video comment url

pull/267/head
Chocobozzz 2018-01-26 14:14:43 +01:00
parent ce97fe366e
commit 0776d83f2c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ enum ScopeNames {
},
{
fields: [ 'videoId', 'originCommentId' ]
},
{
fields: [ 'url' ],
unique: true
}
]
})