aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r--server/initializers/database.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index 0be752363..78bc8101c 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -25,6 +25,7 @@ import { CONFIG } from './constants'
25import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' 25import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update'
26import { VideoCaptionModel } from '../models/video/video-caption' 26import { VideoCaptionModel } from '../models/video/video-caption'
27import { VideoImportModel } from '../models/video/video-import' 27import { VideoImportModel } from '../models/video/video-import'
28import { VideoViewModel } from '../models/video/video-views'
28 29
29require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string 30require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
30 31
@@ -83,7 +84,8 @@ async function initDatabaseModels (silent: boolean) {
83 VideoModel, 84 VideoModel,
84 VideoCommentModel, 85 VideoCommentModel,
85 ScheduleVideoUpdateModel, 86 ScheduleVideoUpdateModel,
86 VideoImportModel 87 VideoImportModel,
88 VideoViewModel
87 ]) 89 ])
88 90
89 // Check extensions exist in the database 91 // Check extensions exist in the database