diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-26 10:55:40 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 418d092afa81e2c8fe8ac6838fc4b5eb0af6a782 (patch) | |
tree | 5e9bc5604fd5d66a006cfebb7acdbdd5486e5d1e /server/initializers/database.ts | |
parent | b427febb4d5cebf03b815bca2c59af6e82491569 (diff) | |
download | PeerTube-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.ts | 6 |
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' | |||
34 | import { UserNotificationModel } from '../models/account/user-notification' | 34 | import { UserNotificationModel } from '../models/account/user-notification' |
35 | import { UserNotificationSettingModel } from '../models/account/user-notification-setting' | 35 | import { UserNotificationSettingModel } from '../models/account/user-notification-setting' |
36 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' | 36 | import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist' |
37 | import { VideoPlaylistModel } from '../models/video/video-playlist' | ||
38 | import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' | ||
37 | 39 | ||
38 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 40 | require('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 |