diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-01 14:53:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-01 14:53:37 +0200 |
commit | 693c6586cb896a84ff0f897b1c242bcf7bdcbaee (patch) | |
tree | 4269fc4680086fefe8e30f388e9612966a4b4bee /server/models/video | |
parent | c208212202179f8878a050787f934f4850b6ff4b (diff) | |
download | PeerTube-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.ts | 3 |
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 | ||