ActivityPub-federated video streaming platform using P2P directly in your web browser
Add missing indexes for foreign keys
Chocobozzz4636ae504012
diff --git a/server/core/models/runner/runner-job.ts b/server/core/models/runner/runner-job.tsindex 86a260dbbd..901f57ab9e 100644--- a/server/core/models/runner/runner-job.ts+++ b/server/core/models/runner/runner-job.ts@@ -63,6 +63,9 @@ enum ScopeNames {},{fields: [ 'runnerId' ]+ },+ {+ fields: [ 'dependsOnRunnerJobId' ]}]})diff --git a/server/core/models/user/user-notification.ts b/server/core/models/user/user-notification.tsindex 5c294a24dc..a4167cc04f 100644--- a/server/core/models/user/user-notification.ts+++ b/server/core/models/user/user-notification.ts@@ -116,6 +116,14 @@ import { UserModel } from './user.js'[Op.ne]: null}}+ },+ {+ fields: [ 'videoCaptionId' ],+ where: {+ videoCaptionId: {+ [Op.ne]: null+ }+ }}] as (ModelIndexesOptions & { where?: WhereOptions })[]})diff --git a/server/core/models/video/video-comment.ts b/server/core/models/video/video-comment.tsindex 80f09d50d3..84b13eee86 100644--- a/server/core/models/video/video-comment.ts+++ b/server/core/models/video/video-comment.ts@@ -132,6 +132,9 @@ export enum ScopeNames {fields: [{ name: 'createdAt', order: 'DESC' }]+ },+ {+ fields: [ 'inReplyToCommentId' ]}]})diff --git a/server/core/models/video/video-import.ts b/server/core/models/video/video-import.tsindex ebd71fe9c9..caf6e476e7 100644--- a/server/core/models/video/video-import.ts+++ b/server/core/models/video/video-import.ts@@ -57,6 +57,9 @@ const defaultVideoScope = () => {},{fields: [ 'userId' ]+ },+ {+ fields: [ 'videoChannelSyncId' ]}]})