aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-26 10:55:40 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commit418d092afa81e2c8fe8ac6838fc4b5eb0af6a782 (patch)
tree5e9bc5604fd5d66a006cfebb7acdbdd5486e5d1e /server/initializers/database.ts
parentb427febb4d5cebf03b815bca2c59af6e82491569 (diff)
downloadPeerTube-418d092afa81e2c8fe8ac6838fc4b5eb0af6a782.tar.gz
PeerTube-418d092afa81e2c8fe8ac6838fc4b5eb0af6a782.tar.zst
PeerTube-418d092afa81e2c8fe8ac6838fc4b5eb0af6a782.zip
Playlist server API
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r--server/initializers/database.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index fe296142d..541ebbecf 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -34,6 +34,8 @@ import { ServerBlocklistModel } from '../models/server/server-blocklist'
34import { UserNotificationModel } from '../models/account/user-notification' 34import { UserNotificationModel } from '../models/account/user-notification'
35import { UserNotificationSettingModel } from '../models/account/user-notification-setting' 35import { UserNotificationSettingModel } from '../models/account/user-notification-setting'
36import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' 36import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist'
37import { VideoPlaylistModel } from '../models/video/video-playlist'
38import { VideoPlaylistElementModel } from '../models/video/video-playlist-element'
37 39
38require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string 40require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
39 41
@@ -101,7 +103,9 @@ async function initDatabaseModels (silent: boolean) {
101 ServerBlocklistModel, 103 ServerBlocklistModel,
102 UserNotificationModel, 104 UserNotificationModel,
103 UserNotificationSettingModel, 105 UserNotificationSettingModel,
104 VideoStreamingPlaylistModel 106 VideoStreamingPlaylistModel,
107 VideoPlaylistModel,
108 VideoPlaylistElementModel
105 ]) 109 ])
106 110
107 // Check extensions exist in the database 111 // Check extensions exist in the database