projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce97fe3
)
Add unique index on video comment url
author
Chocobozzz
<me@florianbigard.com>
Fri, 26 Jan 2018 13:14:43 +0000
(14:14 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 26 Jan 2018 13:14:43 +0000
(14:14 +0100)
server/models/video/video-comment.ts
patch
|
blob
|
history
diff --git
a/server/models/video/video-comment.ts
b/server/models/video/video-comment.ts
index ab909b0b81c3ea9ecda79ff180a7a07d3da58892..868d04ff9e0a7b381e78a63d8e05553d309d8001 100644
(file)
--- a/
server/models/video/video-comment.ts
+++ b/
server/models/video/video-comment.ts
@@
-104,6
+104,10
@@
enum ScopeNames {
},
{
fields: [ 'videoId', 'originCommentId' ]
+ },
+ {
+ fields: [ 'url' ],
+ unique: true
}
]
})