diff options
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 4d57bf8aa..dd5b9bf67 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -28,6 +28,9 @@ import { VideoImportModel } from '../models/video/video-import' | |||
28 | import { VideoViewModel } from '../models/video/video-views' | 28 | import { VideoViewModel } from '../models/video/video-views' |
29 | import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' | 29 | import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' |
30 | import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' | 30 | import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' |
31 | import { UserVideoHistoryModel } from '../models/account/user-video-history' | ||
32 | import { AccountBlocklistModel } from '../models/account/account-blocklist' | ||
33 | import { ServerBlocklistModel } from '../models/server/server-blocklist' | ||
31 | 34 | ||
32 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 35 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string |
33 | 36 | ||
@@ -89,7 +92,10 @@ async function initDatabaseModels (silent: boolean) { | |||
89 | ScheduleVideoUpdateModel, | 92 | ScheduleVideoUpdateModel, |
90 | VideoImportModel, | 93 | VideoImportModel, |
91 | VideoViewModel, | 94 | VideoViewModel, |
92 | VideoRedundancyModel | 95 | VideoRedundancyModel, |
96 | UserVideoHistoryModel, | ||
97 | AccountBlocklistModel, | ||
98 | ServerBlocklistModel | ||
93 | ]) | 99 | ]) |
94 | 100 | ||
95 | // Check extensions exist in the database | 101 | // Check extensions exist in the database |