1
0
Fork 0

Add unique index on video comment url

This commit is contained in:
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

View file

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