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 142063a99..a7988d75b 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -37,6 +37,7 @@ import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-pla
37import { VideoPlaylistModel } from '../models/video/video-playlist' 37import { VideoPlaylistModel } from '../models/video/video-playlist'
38import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' 38import { VideoPlaylistElementModel } from '../models/video/video-playlist-element'
39import { ThumbnailModel } from '../models/video/thumbnail' 39import { ThumbnailModel } from '../models/video/thumbnail'
40import { PluginModel } from '../models/server/plugin'
40import { QueryTypes, Transaction } from 'sequelize' 41import { QueryTypes, Transaction } from 'sequelize'
41 42
42require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string 43require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
@@ -107,7 +108,8 @@ async function initDatabaseModels (silent: boolean) {
107 VideoStreamingPlaylistModel, 108 VideoStreamingPlaylistModel,
108 VideoPlaylistModel, 109 VideoPlaylistModel,
109 VideoPlaylistElementModel, 110 VideoPlaylistElementModel,
110 ThumbnailModel 111 ThumbnailModel,
112 PluginModel
111 ]) 113 ])
112 114
113 // Check extensions exist in the database 115 // Check extensions exist in the database