Fix missing delete cascade video -> channel

This commit is contained in:
Chocobozzz 2021-07-01 14:53:26 +02:00
parent c208212202
commit 693c6586cb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@
* :tada: Add RTL layout support * :tada: Add RTL layout support
* Add ability to use HTML, markdown and [custom HTML tags](https://docs.joinpeertube.org/api-custom-client-markup) in instance description * Add ability to use HTML, markdown and [custom HTML tags](https://docs.joinpeertube.org/api-custom-client-markup) in instance description
* Default to dark theme (if available) if requested by the web browser * Default to dark theme (if available) if requested by the web browser
* Add ability for admins to configure minimum signup page [#4010](https://github.com/Chocobozzz/PeerTube/pull/4010) * Add ability for admins to configure minimum age required in signup page [#4010](https://github.com/Chocobozzz/PeerTube/pull/4010)
* Use a dedicated URL for each tab in publish page * Use a dedicated URL for each tab in publish page
* Add ability to prefill contact form using query parameters in URL [#4161](https://github.com/Chocobozzz/PeerTube/pull/4161) * Add ability to prefill contact form using query parameters in URL [#4161](https://github.com/Chocobozzz/PeerTube/pull/4161)
* Accessibility/UI: * Accessibility/UI:

View File

@ -572,7 +572,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
foreignKey: { foreignKey: {
allowNull: true allowNull: true
}, },
hooks: true hooks: true,
onDelete: 'cascade'
}) })
VideoChannel: VideoChannelModel VideoChannel: VideoChannelModel