aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index b00081f25..480e54276 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -253,9 +253,6 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da
253 }, 253 },
254 { 254 {
255 fields: [ 'channelId' ] 255 fields: [ 'channelId' ]
256 },
257 {
258 fields: [ 'parentId' ]
259 } 256 }
260 ], 257 ],
261 hooks: { 258 hooks: {
@@ -329,14 +326,6 @@ function associate (models) {
329 onDelete: 'cascade' 326 onDelete: 'cascade'
330 }) 327 })
331 328
332 Video.belongsTo(models.Video, {
333 foreignKey: {
334 name: 'parentId',
335 allowNull: true
336 },
337 onDelete: 'cascade'
338 })
339
340 Video.belongsToMany(models.Tag, { 329 Video.belongsToMany(models.Tag, {
341 foreignKey: 'videoId', 330 foreignKey: 'videoId',
342 through: models.VideoTag, 331 through: models.VideoTag,