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 | |
parent | c208212202179f8878a050787f934f4850b6ff4b (diff) | |
download | PeerTube-693c6586cb896a84ff0f897b1c242bcf7bdcbaee.tar.gz PeerTube-693c6586cb896a84ff0f897b1c242bcf7bdcbaee.tar.zst PeerTube-693c6586cb896a84ff0f897b1c242bcf7bdcbaee.zip |
Fix missing delete cascade video -> channel
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | server/models/video/video.ts | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f2712e916..586d3ffb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -42,7 +42,7 @@ | |||
42 | * :tada: Add RTL layout support | 42 | * :tada: Add RTL layout support |
43 | * Add ability to use HTML, markdown and [custom HTML tags](https://docs.joinpeertube.org/api-custom-client-markup) in instance description | 43 | * Add ability to use HTML, markdown and [custom HTML tags](https://docs.joinpeertube.org/api-custom-client-markup) in instance description |
44 | * Default to dark theme (if available) if requested by the web browser | 44 | * Default to dark theme (if available) if requested by the web browser |
45 | * Add ability for admins to configure minimum signup page [#4010](https://github.com/Chocobozzz/PeerTube/pull/4010) | 45 | * Add ability for admins to configure minimum age required in signup page [#4010](https://github.com/Chocobozzz/PeerTube/pull/4010) |
46 | * Use a dedicated URL for each tab in publish page | 46 | * Use a dedicated URL for each tab in publish page |
47 | * Add ability to prefill contact form using query parameters in URL [#4161](https://github.com/Chocobozzz/PeerTube/pull/4161) | 47 | * Add ability to prefill contact form using query parameters in URL [#4161](https://github.com/Chocobozzz/PeerTube/pull/4161) |
48 | * Accessibility/UI: | 48 | * Accessibility/UI: |
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 | ||