diff options
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r-- | server/initializers/database.ts | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts index d04c8db1b..d59fd3655 100644 --- a/server/initializers/database.ts +++ b/server/initializers/database.ts | |||
@@ -8,26 +8,25 @@ import { CONFIG } from './constants' | |||
8 | // Do not use barrel, we need to load database first | 8 | // Do not use barrel, we need to load database first |
9 | import { logger } from '../helpers/logger' | 9 | import { logger } from '../helpers/logger' |
10 | import { isTestInstance, readdirPromise } from '../helpers/core-utils' | 10 | import { isTestInstance, readdirPromise } from '../helpers/core-utils' |
11 | import { | 11 | |
12 | ApplicationModel, | 12 | import { VideoModel } from './../models/video/video-interface' |
13 | AuthorModel, | 13 | import { VideoTagModel } from './../models/video/video-tag-interface' |
14 | JobModel, | 14 | import { BlacklistedVideoModel } from './../models/video/video-blacklist-interface' |
15 | OAuthClientModel, | 15 | import { VideoFileModel } from './../models/video/video-file-interface' |
16 | OAuthTokenModel, | 16 | import { VideoAbuseModel } from './../models/video/video-abuse-interface' |
17 | PodModel, | 17 | import { UserModel } from './../models/user/user-interface' |
18 | RequestModel, | 18 | import { UserVideoRateModel } from './../models/user/user-video-rate-interface' |
19 | RequestToPodModel, | 19 | import { TagModel } from './../models/video/tag-interface' |
20 | RequestVideoEventModel, | 20 | import { RequestModel } from './../models/request/request-interface' |
21 | RequestVideoQaduModel, | 21 | import { RequestVideoQaduModel } from './../models/request/request-video-qadu-interface' |
22 | TagModel, | 22 | import { RequestVideoEventModel } from './../models/request/request-video-event-interface' |
23 | UserModel, | 23 | import { RequestToPodModel } from './../models/request/request-to-pod-interface' |
24 | UserVideoRateModel, | 24 | import { PodModel } from './../models/pod/pod-interface' |
25 | VideoAbuseModel, | 25 | import { OAuthTokenModel } from './../models/oauth/oauth-token-interface' |
26 | BlacklistedVideoModel, | 26 | import { OAuthClientModel } from './../models/oauth/oauth-client-interface' |
27 | VideoFileModel, | 27 | import { JobModel } from './../models/job/job-interface' |
28 | VideoTagModel, | 28 | import { AuthorModel } from './../models/video/author-interface' |
29 | VideoModel | 29 | import { ApplicationModel } from './../models/application/application-interface' |
30 | } from '../models' | ||
31 | 30 | ||
32 | const dbname = CONFIG.DATABASE.DBNAME | 31 | const dbname = CONFIG.DATABASE.DBNAME |
33 | const username = CONFIG.DATABASE.USERNAME | 32 | const username = CONFIG.DATABASE.USERNAME |