aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-01 14:53:26 +0200
committerChocobozzz <me@florianbigard.com>2021-07-01 14:53:37 +0200
commit693c6586cb896a84ff0f897b1c242bcf7bdcbaee (patch)
tree4269fc4680086fefe8e30f388e9612966a4b4bee /server/models/video
parentc208212202179f8878a050787f934f4850b6ff4b (diff)
downloadPeerTube-693c6586cb896a84ff0f897b1c242bcf7bdcbaee.tar.gz
PeerTube-693c6586cb896a84ff0f897b1c242bcf7bdcbaee.tar.zst
PeerTube-693c6586cb896a84ff0f897b1c242bcf7bdcbaee.zip
Fix missing delete cascade video -> channel
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 2b40225dd..7a9e96210 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -572,7 +572,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
572 foreignKey: { 572 foreignKey: {
573 allowNull: true 573 allowNull: true
574 }, 574 },
575 hooks: true 575 hooks: true,
576 onDelete: 'cascade'
576 }) 577 })
577 VideoChannel: VideoChannelModel 578 VideoChannel: VideoChannelModel
578 579