X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fdatabase.ts;h=4d57bf8aa10bc3c068364d1df2b65e9fbc0add07;hb=dae4a1c0f8d8af2528d7e04fef2b8b65b2d52122;hp=78bc8101c772d769f361c2c601f022c1d46f0b0a;hpb=6b6168606bc86430f6b7821c9d5f1c80d0425ebf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/database.ts b/server/initializers/database.ts index 78bc8101c..4d57bf8aa 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts @@ -26,6 +26,8 @@ import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update' import { VideoCaptionModel } from '../models/video/video-caption' import { VideoImportModel } from '../models/video/video-import' import { VideoViewModel } from '../models/video/video-views' +import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' +import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string @@ -75,6 +77,7 @@ async function initDatabaseModels (silent: boolean) { AccountVideoRateModel, UserModel, VideoAbuseModel, + VideoChangeOwnershipModel, VideoChannelModel, VideoShareModel, VideoFileModel, @@ -85,7 +88,8 @@ async function initDatabaseModels (silent: boolean) { VideoCommentModel, ScheduleVideoUpdateModel, VideoImportModel, - VideoViewModel + VideoViewModel, + VideoRedundancyModel ]) // Check extensions exist in the database