diff options
Diffstat (limited to 'server')
-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 | ||