]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix missing delete cascade video -> channel
authorChocobozzz <me@florianbigard.com>
Thu, 1 Jul 2021 12:53:26 +0000 (14:53 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 1 Jul 2021 12:53:37 +0000 (14:53 +0200)
CHANGELOG.md
server/models/video/video.ts

index f2712e916290d05e31c93a78dac59fee9bd8f3ab..586d3ffb950a9a0a4846bfb2e35044780f91f027 100644 (file)
@@ -42,7 +42,7 @@
  * :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
  * 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
  * Add ability to prefill contact form using query parameters in URL [#4161](https://github.com/Chocobozzz/PeerTube/pull/4161)
  * Accessibility/UI:
index 2b40225dd233d560933c17bd53c003072acc63c9..7a9e96210e00ae593df7ec3abddb4891fc5bb043 100644 (file)
@@ -572,7 +572,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
     foreignKey: {
       allowNull: true
     },
-    hooks: true
+    hooks: true,
+    onDelete: 'cascade'
   })
   VideoChannel: VideoChannelModel