aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-09-17 09:20:52 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitc6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch)
tree79304b0152b0a38d33b26e65d4acdad0da4032a7 /server/initializers/database.ts
parent110d463fece85e87a26aca48a6048ae0017a27b3 (diff)
downloadPeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz
PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst
PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip
Live streaming implementation first step
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r--server/initializers/database.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index a20cdacc3..128ed5b75 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -1,11 +1,11 @@
1import { QueryTypes, Transaction } from 'sequelize' 1import { QueryTypes, Transaction } from 'sequelize'
2import { Sequelize as SequelizeTypescript } from 'sequelize-typescript' 2import { Sequelize as SequelizeTypescript } from 'sequelize-typescript'
3import { AbuseModel } from '@server/models/abuse/abuse'
4import { AbuseMessageModel } from '@server/models/abuse/abuse-message'
5import { VideoAbuseModel } from '@server/models/abuse/video-abuse'
6import { VideoCommentAbuseModel } from '@server/models/abuse/video-comment-abuse'
7import { isTestInstance } from '../helpers/core-utils' 3import { isTestInstance } from '../helpers/core-utils'
8import { logger } from '../helpers/logger' 4import { logger } from '../helpers/logger'
5import { AbuseModel } from '../models/abuse/abuse'
6import { AbuseMessageModel } from '../models/abuse/abuse-message'
7import { VideoAbuseModel } from '../models/abuse/video-abuse'
8import { VideoCommentAbuseModel } from '../models/abuse/video-comment-abuse'
9import { AccountModel } from '../models/account/account' 9import { AccountModel } from '../models/account/account'
10import { AccountBlocklistModel } from '../models/account/account-blocklist' 10import { AccountBlocklistModel } from '../models/account/account-blocklist'
11import { AccountVideoRateModel } from '../models/account/account-video-rate' 11import { AccountVideoRateModel } from '../models/account/account-video-rate'
@@ -34,6 +34,7 @@ import { VideoChannelModel } from '../models/video/video-channel'
34import { VideoCommentModel } from '../models/video/video-comment' 34import { VideoCommentModel } from '../models/video/video-comment'
35import { VideoFileModel } from '../models/video/video-file' 35import { VideoFileModel } from '../models/video/video-file'
36import { VideoImportModel } from '../models/video/video-import' 36import { VideoImportModel } from '../models/video/video-import'
37import { VideoLiveModel } from '../models/video/video-live'
37import { VideoPlaylistModel } from '../models/video/video-playlist' 38import { VideoPlaylistModel } from '../models/video/video-playlist'
38import { VideoPlaylistElementModel } from '../models/video/video-playlist-element' 39import { VideoPlaylistElementModel } from '../models/video/video-playlist-element'
39import { VideoShareModel } from '../models/video/video-share' 40import { VideoShareModel } from '../models/video/video-share'
@@ -118,6 +119,7 @@ async function initDatabaseModels (silent: boolean) {
118 VideoViewModel, 119 VideoViewModel,
119 VideoRedundancyModel, 120 VideoRedundancyModel,
120 UserVideoHistoryModel, 121 UserVideoHistoryModel,
122 VideoLiveModel,
121 AccountBlocklistModel, 123 AccountBlocklistModel,
122 ServerBlocklistModel, 124 ServerBlocklistModel,
123 UserNotificationModel, 125 UserNotificationModel,