diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-21 14:55:10 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | 0c9668f77901e7540e2c7045eb0f2974a4842a69 (patch) | |
tree | 226d3dd1565b0bb56588897af3b8530e6216e96b /server/initializers/database.ts | |
parent | 6bcb854cdea8688a32240bc5719c7d139806e00b (diff) | |
download | PeerTube-0c9668f77901e7540e2c7045eb0f2974a4842a69.tar.gz PeerTube-0c9668f77901e7540e2c7045eb0f2974a4842a69.tar.zst PeerTube-0c9668f77901e7540e2c7045eb0f2974a4842a69.zip |
Implement remote runner jobs in server
Move ffmpeg functions to @shared
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 3f31099ed..14dd8c379 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -1,6 +1,9 @@ | |||
1 | import { QueryTypes, Transaction } from 'sequelize' | 1 | import { QueryTypes, Transaction } from 'sequelize' |
2 | import { Sequelize as SequelizeTypescript } from 'sequelize-typescript' | 2 | import { Sequelize as SequelizeTypescript } from 'sequelize-typescript' |
3 | import { ActorCustomPageModel } from '@server/models/account/actor-custom-page' | 3 | import { ActorCustomPageModel } from '@server/models/account/actor-custom-page' |
4 | import { RunnerModel } from '@server/models/runner/runner' | ||
5 | import { RunnerJobModel } from '@server/models/runner/runner-job' | ||
6 | import { RunnerRegistrationTokenModel } from '@server/models/runner/runner-registration-token' | ||
4 | import { TrackerModel } from '@server/models/server/tracker' | 7 | import { TrackerModel } from '@server/models/server/tracker' |
5 | import { VideoTrackerModel } from '@server/models/server/video-tracker' | 8 | import { VideoTrackerModel } from '@server/models/server/video-tracker' |
6 | import { UserModel } from '@server/models/user/user' | 9 | import { UserModel } from '@server/models/user/user' |
@@ -9,6 +12,7 @@ import { UserRegistrationModel } from '@server/models/user/user-registration' | |||
9 | import { UserVideoHistoryModel } from '@server/models/user/user-video-history' | 12 | import { UserVideoHistoryModel } from '@server/models/user/user-video-history' |
10 | import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync' | 13 | import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync' |
11 | import { VideoJobInfoModel } from '@server/models/video/video-job-info' | 14 | import { VideoJobInfoModel } from '@server/models/video/video-job-info' |
15 | import { VideoLiveReplaySettingModel } from '@server/models/video/video-live-replay-setting' | ||
12 | import { VideoLiveSessionModel } from '@server/models/video/video-live-session' | 16 | import { VideoLiveSessionModel } from '@server/models/video/video-live-session' |
13 | import { VideoSourceModel } from '@server/models/video/video-source' | 17 | import { VideoSourceModel } from '@server/models/video/video-source' |
14 | import { LocalVideoViewerModel } from '@server/models/view/local-video-viewer' | 18 | import { LocalVideoViewerModel } from '@server/models/view/local-video-viewer' |
@@ -52,7 +56,6 @@ import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-pla | |||
52 | import { VideoTagModel } from '../models/video/video-tag' | 56 | import { VideoTagModel } from '../models/video/video-tag' |
53 | import { VideoViewModel } from '../models/view/video-view' | 57 | import { VideoViewModel } from '../models/view/video-view' |
54 | import { CONFIG } from './config' | 58 | import { CONFIG } from './config' |
55 | import { VideoLiveReplaySettingModel } from '@server/models/video/video-live-replay-setting' | ||
56 | 59 | ||
57 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 60 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string |
58 | 61 | ||
@@ -159,7 +162,10 @@ async function initDatabaseModels (silent: boolean) { | |||
159 | ActorCustomPageModel, | 162 | ActorCustomPageModel, |
160 | VideoJobInfoModel, | 163 | VideoJobInfoModel, |
161 | VideoChannelSyncModel, | 164 | VideoChannelSyncModel, |
162 | UserRegistrationModel | 165 | UserRegistrationModel, |
166 | RunnerRegistrationTokenModel, | ||
167 | RunnerModel, | ||
168 | RunnerJobModel | ||
163 | ]) | 169 | ]) |
164 | 170 | ||
165 | // Check extensions exist in the database | 171 | // Check extensions exist in the database |