diff options
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 85d205cdc..0b3f695f7 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -3,9 +3,10 @@ import { isTestInstance } from '../helpers/core-utils' | |||
3 | import { logger } from '../helpers/logger' | 3 | import { logger } from '../helpers/logger' |
4 | 4 | ||
5 | import { AccountModel } from '../models/account/account' | 5 | import { AccountModel } from '../models/account/account' |
6 | import { AccountFollowModel } from '../models/account/account-follow' | ||
7 | import { AccountVideoRateModel } from '../models/account/account-video-rate' | 6 | import { AccountVideoRateModel } from '../models/account/account-video-rate' |
8 | import { UserModel } from '../models/account/user' | 7 | import { UserModel } from '../models/account/user' |
8 | import { ActorModel } from '../models/activitypub/actor' | ||
9 | import { ActorFollowModel } from '../models/activitypub/actor-follow' | ||
9 | import { ApplicationModel } from '../models/application/application' | 10 | import { ApplicationModel } from '../models/application/application' |
10 | import { AvatarModel } from '../models/avatar/avatar' | 11 | import { AvatarModel } from '../models/avatar/avatar' |
11 | import { JobModel } from '../models/job/job' | 12 | import { JobModel } from '../models/job/job' |
@@ -17,7 +18,6 @@ import { VideoModel } from '../models/video/video' | |||
17 | import { VideoAbuseModel } from '../models/video/video-abuse' | 18 | import { VideoAbuseModel } from '../models/video/video-abuse' |
18 | import { VideoBlacklistModel } from '../models/video/video-blacklist' | 19 | import { VideoBlacklistModel } from '../models/video/video-blacklist' |
19 | import { VideoChannelModel } from '../models/video/video-channel' | 20 | import { VideoChannelModel } from '../models/video/video-channel' |
20 | import { VideoChannelShareModel } from '../models/video/video-channel-share' | ||
21 | import { VideoFileModel } from '../models/video/video-file' | 21 | import { VideoFileModel } from '../models/video/video-file' |
22 | import { VideoShareModel } from '../models/video/video-share' | 22 | import { VideoShareModel } from '../models/video/video-share' |
23 | import { VideoTagModel } from '../models/video/video-tag' | 23 | import { VideoTagModel } from '../models/video/video-tag' |
@@ -56,6 +56,8 @@ const sequelizeTypescript = new SequelizeTypescript({ | |||
56 | async function initDatabaseModels (silent: boolean) { | 56 | async function initDatabaseModels (silent: boolean) { |
57 | sequelizeTypescript.addModels([ | 57 | sequelizeTypescript.addModels([ |
58 | ApplicationModel, | 58 | ApplicationModel, |
59 | ActorModel, | ||
60 | ActorFollowModel, | ||
59 | AvatarModel, | 61 | AvatarModel, |
60 | AccountModel, | 62 | AccountModel, |
61 | JobModel, | 63 | JobModel, |
@@ -64,11 +66,9 @@ async function initDatabaseModels (silent: boolean) { | |||
64 | ServerModel, | 66 | ServerModel, |
65 | TagModel, | 67 | TagModel, |
66 | AccountVideoRateModel, | 68 | AccountVideoRateModel, |
67 | AccountFollowModel, | ||
68 | UserModel, | 69 | UserModel, |
69 | VideoAbuseModel, | 70 | VideoAbuseModel, |
70 | VideoChannelModel, | 71 | VideoChannelModel, |
71 | VideoChannelShareModel, | ||
72 | VideoShareModel, | 72 | VideoShareModel, |
73 | VideoFileModel, | 73 | VideoFileModel, |
74 | VideoBlacklistModel, | 74 | VideoBlacklistModel, |