diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-17 10:07:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:25:52 +0200 |
commit | e8bafea35bc930cb8ac5b2d521a188642a1adffe (patch) | |
tree | 7537f957ed7307b464e3c90b71b813d992acaade /server/initializers/database.ts | |
parent | 94565d52bb2883e09f16d1363170ac9c0dccb7a1 (diff) | |
download | PeerTube-e8bafea35bc930cb8ac5b2d521a188642a1adffe.tar.gz PeerTube-e8bafea35bc930cb8ac5b2d521a188642a1adffe.tar.zst PeerTube-e8bafea35bc930cb8ac5b2d521a188642a1adffe.zip |
Create a dedicated table to track video thumbnails
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 872a56220..8f237eb23 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -36,6 +36,7 @@ import { UserNotificationSettingModel } from '../models/account/user-notificatio | |||
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' | 37 | import { VideoPlaylistModel } from '../models/video/video-playlist' |
38 | import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' | 38 | import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' |
39 | import { ThumbnailModel } from '../models/video/thumbnail' | ||
39 | 40 | ||
40 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 41 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string |
41 | 42 | ||
@@ -105,7 +106,8 @@ async function initDatabaseModels (silent: boolean) { | |||
105 | UserNotificationSettingModel, | 106 | UserNotificationSettingModel, |
106 | VideoStreamingPlaylistModel, | 107 | VideoStreamingPlaylistModel, |
107 | VideoPlaylistModel, | 108 | VideoPlaylistModel, |
108 | VideoPlaylistElementModel | 109 | VideoPlaylistElementModel, |
110 | ThumbnailModel | ||
109 | ]) | 111 | ]) |
110 | 112 | ||
111 | // Check extensions exist in the database | 113 | // Check extensions exist in the database |