diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-11 16:27:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-13 14:05:49 +0200 |
commit | c48e82b5e0478434de30626d14594a97f2402e7c (patch) | |
tree | a78e5272bd0fe4f5b41831e571e02d05f1515b82 /server/initializers/database.ts | |
parent | a651038487faa838bda3ce04695b08bc65baff70 (diff) | |
download | PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.tar.gz PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.tar.zst PeerTube-c48e82b5e0478434de30626d14594a97f2402e7c.zip |
Basic video redundancy implementation
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 b68e1a882..4d57bf8aa 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -27,6 +27,7 @@ import { VideoCaptionModel } from '../models/video/video-caption' | |||
27 | import { VideoImportModel } from '../models/video/video-import' | 27 | import { VideoImportModel } from '../models/video/video-import' |
28 | import { VideoViewModel } from '../models/video/video-views' | 28 | import { VideoViewModel } from '../models/video/video-views' |
29 | import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' | 29 | import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership' |
30 | import { VideoRedundancyModel } from '../models/redundancy/video-redundancy' | ||
30 | 31 | ||
31 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string | 32 | require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string |
32 | 33 | ||
@@ -87,7 +88,8 @@ async function initDatabaseModels (silent: boolean) { | |||
87 | VideoCommentModel, | 88 | VideoCommentModel, |
88 | ScheduleVideoUpdateModel, | 89 | ScheduleVideoUpdateModel, |
89 | VideoImportModel, | 90 | VideoImportModel, |
90 | VideoViewModel | 91 | VideoViewModel, |
92 | VideoRedundancyModel | ||
91 | ]) | 93 | ]) |
92 | 94 | ||
93 | // Check extensions exist in the database | 95 | // Check extensions exist in the database |